I'm using a TableView and a Collection View in a Scroll View. I set scrolling disabled in the Table View so i need to change the height of the Table View.
I used this code to get the height, but every height was 0
//NSUInteger tableViewheight = self.videosArray.count * 60; //60 is the cell height
NSUInteger tableViewHeight = self.videosTableView.contentSize.height;
CGRect frame;
frame = self.videosTableView.frame;
frame.size.height = tableViewHeight;
self.videosTableView.frame = frame;
I also tried the commented code above.
Anyone an idea how i can get the height or what I'm doing wrong?
Thanks.