Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 4 static UITableViewCells with a UITextView and a UIView in each of them. Both the textView and the view get resized dynamically and they both have 4 constraints on each side.

What I'm trying to achieve is making the UITableViewCell resize dynamically. I'm having trouble doing that.

I cannot return the height of the textView + the view in the method heightForRowAtIndexPath because the view is in an iboutletCollection.

Hope I was clear enough. If you have any questions, feel free to ask
Posted

1 solution

You can subclass UITableViewCell and in the method calc or set the height. But you must set the Identity of the cell in the Attribute inspector in the interface builder.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900