ios - Preventing page curl from curling offscreen views -
i have navigation controller based application working on. uses iad display adds. when adbannerview has no add (based on bannerview:didfailtoreceiveadwitherror:
), banner view slid off of bottom of screen.
there view shown root view controller using modal page curl transition. when banner view on screen, there no issues transition. however, when off screen, blank, banner view-sized box appended bottom of curled page.
i have tried setting every view controller's view , apps window have clipstobounds
set true
avail.
any ideas?
just set banner view's alpha
0
after animated offscreen.
[uiview animatewithduration:duration animations:^ { //move banner offscreen } completion:^(bool finished) { banner.alpha = 0; }];
typed on mobile, don't ship without testing
sometimes best solution simplest one.
Comments
Post a Comment