I need to change dynamically the height of a uitableview inside my view.
I tried with this code inside the viewDidLoad:
self.theTable.rowHeight = 90;
self.theTable.contentSize = CGSizeMake(320,900); 
The first line works and the height is changed, but the second doesn't work!
How can I do this?
You can try resetting the bounds like this:
CGRect bounds = [tableView bounds];
[tableView setBounds:CGRectMake(bounds.origin.x, 
                            bounds.origin.y, 
                            bounds.size.width, 
                            bounds.size.height + 20)];
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With