objective c - iOS - PageView controller with UITableView resize error -


i have controller twouiviews first 1 have 200 of height(constant across iphones) , second oneuiviews contain apageviewcontroller , should rest of height , does.

the problems come when theuitableview data, resize theuiview, resize, theuiview have more height should have ( because tableview resized it) , not able scroll last object.

example: height screen = 600

first uiview = 200;

second uiview = 400;

now uitableview data , loads , resize

first uiview = 200;

second uiview = 600;

but screen have 600.

i tryed lots of options, try resize table original width , height of second uiview before resize on viewdidlayoutsubviews

- (void)viewdidlayoutsubviews{ [super viewdidlayoutsubviews];  float = self.tabla.frame.size.height; float a2 = self.tabla.superview.frame.size.height; //self.tabla.superview.autoresizessubviews = false; //self.tabla.frame = cgrectmake(self.tabla.frame.origin.x,self.tabla.frame.origin.y,self.tablasizewidth,self.tablasizeheight); } 

i tryed desactivate autolayout of thetableview , worked! if desactivate it, desactivate whole storyboard , second uiview cant rest of height (seriously apple?!)

constraints of uiview containing page controller

constraints

view of constraints , layout

note: main view background setted green , pageadapter background setted black.

enter image description here

how can make it?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -