All Questions
Tagged with autolayout uitableview
1,688 questions
0
votes
2
answers
63
views
Dynamic Height Cell with XIB: Including UILabel and UIImageView
I’m trying to design a UITableViewCell with XIB that has the following layout and behavior:
A UIView on the left with a fixed size of 44x44.
A UILabel next to it, which expands dynamically based on ...
0
votes
2
answers
45
views
How to Create a Dynamic Height Table Header with Title and Description in UITableView?
I have a UITableView and I want to display a dynamic header at the top of the table.
I am trying to do this using tableHeaderView. The header contains a titleLabel and a descriptionLabel arranged ...
0
votes
1
answer
41
views
UITableViewCell 's content height constraint can not refresh in reloadData?
I have a simple demo AutoSizing UITableView project like this :
when you tap the tableview cells will make cell's red subview �?s height constraint to bigger value�?from original 60 to 100) and calling ...
1
vote
1
answer
217
views
Problem with height calculation automatically to UICollectionView inside a UITableViewCell
Good?
I have a problem with the implementation of a UICollectionview intro a UITableViewCell, because the height calculation of this component does not work properly, even though using ...
-1
votes
1
answer
44
views
Cell content constraints programmatically
I am trying to redo my project programmatically with no storyboard. I have a tableView with a prototype cell.
The cell contains an imageView (briefcase), firstLabel (at the top) and secondLabel (right ...
1
vote
2
answers
205
views
Couldn't layout Subviews in UITableViewHeaderFooterView
I'm trying to make a custom header for 0 section of my UITableView. Here's the code I'm using to create this header:
class ProfileHeaderView: UITableViewHeaderFooterView {
// MARK: - Subviews
...
0
votes
1
answer
41
views
Programmatically added gradientLayer does not clip to UIView added through Storyboard
I have a prototype cell where I set a UIView in the back to have a solid background color (blue, to see the content clearly in Storyboard).
Then I decided to make this background color a gradient at ...
0
votes
0
answers
54
views
swift collectionCell reuse strategy makes image display incorrect
My target: stop animated image in every cell. However, only the first three cell stop successfully at beginning. If I scroll to the fourth or fifth cell, the image is not stoping. Just like the demo ...
0
votes
1
answer
66
views
UITableViewCell height problems
I'm trying to configure my tableViewCell but some problems with layouts.
This is my view controller:
Here is my xib file with cell:
And how it works:
Code for ViewController:
class ...
0
votes
0
answers
86
views
inputAccessoryView sizing problem on iPhones without physical home button
inputAccessoryView's background view is falling under its own textField and profile picture imageView.
It works fine on regular screen iPhones, but on new iPhones with notches it looks like this:
...
0
votes
2
answers
405
views
UITableView self sizing stackView height Constraints issue
I have a problem Self sizing Cell problem.
I want make layout like Feed Content with attached Image like twitter
Profile Image
-
Nickname Label
-
date Label
-
menuBarButton
Vertical - StackView
ㄴ
...
0
votes
3
answers
644
views
Why set tableView auto height not working?
My Problems: I'm trying to set auto height to my table cell. However, when I using tableView.rowHeight = UITableView.automaticDimension or func tableView(_ tableView: UITableView, heightForRowAt ...
0
votes
1
answer
340
views
Dynamic height for UITableView header view - Problem with huge margins
In my application I have a UITableViewController that allows preview of a photo and description to that photo, which are both contained in the UITableView's header. The description label needs to be ...
0
votes
2
answers
383
views
Use UIStackView as UITableViewCell's accessoryView
I would like my table view cells to have multiple accessory buttons. To achieve this, I decided to add them to stack views:
extension MyTableViewController {
override func tableView(_ tableView: ...
0
votes
0
answers
92
views
Strange behavior of Height constraint of UITableView cell in IOS 15
After upgrade on IOS 15 my previous code start works strange.
I have UITableView with cells with embedded views. When it loads in viewDidLoad cell's height constrain that I setup in storyboard become ...