ios - canDisplayBannerAds Issue when Starting in Landscape Mode -



ios - canDisplayBannerAds Issue when Starting in Landscape Mode -

i have enabled banner ads via self.candisplaybannerads = yes; on modal view within app. banner shows @ bottom of screen below toolbar. when starting app in portrait mode , moving vc, ads correct. when on vc if rotate landscape mode view resizes correctly , well. however, if start app in landscape mode , navigate vc, toolbar not displayed correctly. buttons forced downwards partially off screen before iad starts. 1 time iad starts bar move up; however, buttons still incorrectly located.

if disable ads , start app in landscape mode toolbar fine sure due ad. thinking screwed on orientation since command called in viewdidload cannot phone call afterwards or entire placement gets totally screwed up.

how can iad place correctly when starting in landscape mode?

so prepare issue had add together constraint on y-axis. had constraint prior bottom of view adding y constraint @ top of toolbar (its nearest neighbour scrollview) issue resolved. not sure why worked without constraint in other scenarios, did resolve issue.

ios objective-c iad

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -