I have dynamically updating the contentsize of my scrollview based on a table I have in it that doesnt scroll. However, if I hit the back button to get back to my list and go into another item it doesnt get hit the the original height from the first view is used. Where can I update this on every view?
-(void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
[self.uiScrollView layoutIfNeeded];
self.uiScrollView.contentSize = CGSizeMake(self.uiView.bounds.size.width, (self.self.uiView.bounds.size.height + ([player.metas count]-4)*55));
//self.uiScrollView.contentSize = self.uiView.bounds.size;
}
0 comments:
Post a Comment