iphone - iOS subviews are not resized when iAD appears -


i have viewcontroller has 3 views (+ adview). bannerviewdidloadad event triggered , resize views in order make iad visible. however, views not resized , console shows message telling iad may obscured. how bring front , resize views? thank you.

- (void)bannerviewdidloadad:(adbannerview *)banner {      if (!self.bannerisvisible) { //&& inicibanner           self.bannerisvisible = yes;          [self.view addsubview:adview];           [uiview beginanimations:@"animatedadbanneron" context:null];         //adview.frame = cgrectoffset(adview.frame, 0, adview.frame.size.height);         [uiview commitanimations];          self.view.frame = cgrectmake(0, adview.frame.size.height, self.view.frame.size.width, self.view.frame.size.height - adview.frame.size.height);          self.vistab.frame = cgrectmake(0, adview.frame.size.height, self.vistab.frame.size.width, self.vistab.frame.size.height - adview.frame.size.height);          self.vistasocial.frame = cgrectmake(0, adview.frame.size.height, self.vistasocial.frame.size.width, self.vistasocial.frame.size.height - adview.frame.size.height);          [self.view bringsubviewtofront:adview];     }    } 

from code seems ok, best guess forgot connect iboutlets of views xib's uviews.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -