ios - UIScrollView includes extra space at bottom -
i have uiscrollview continually adds space @ bottom of scroll area on ios 7. if rotate device, problem fixes itself, however, before rotating after first navigating view controller, space appears. i've included image below:
what i've tried:
- set
automaticallyadjustscrollviewinsets
no
- checked
contentsize
,contentoffset
,contentinset
. appear fine.
i'm not sure else try solve issue, , appreciate or direction here!
edit: layer of complexity issue... call method, updatescrollviewcontentsize
in viewdidappear:
method. when rotate, , somehow fixes itself, same method called. contentsize
being set when view appears , when rotate.
to make things worse, content size set 638... whether there space or not. but, reason, scrollview ignores until rotate.
here method update contentsize
:
- (void)updatescrollviewcontentsize { [self.scrollview setcontentsize:cgsizemake(self.scrollview.frame.size.width, (self.feedbackfooterview.frame.origin.y + self.feedbackfooterview.frame.size.height + 20))]; }
Comments
Post a Comment