Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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 ...
Hakan Or's user avatar
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 ...
Hakan Or's user avatar
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 ...
ximmyxiao's user avatar
  • 2,893
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 ...
ramonfsk's user avatar
-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 ...
CalebGates's user avatar
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 ...
Philipp's user avatar
  • 347
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 ...
CalebGates's user avatar
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 ...
malcopolocei's user avatar
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 ...
aLikan's user avatar
  • 1
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: ...
adseeAnn's user avatar
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 ㄴ ...
Block Sun's user avatar
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 ...
malcopolocei's user avatar
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 ...
Nikita Alexander's user avatar
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: ...
goofy4224's user avatar
  • 310
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 ...
tePoloN's user avatar
  • 37

15 30 50 per page
1
2 3 4 5
113