autoresizingmask - UITableView not autosizing to fit its UIView superview -
had solve in different way. anyway!
i've solved such problem placing dynamic controls , table on separate view. had different navigation bar height + iad banner appearing , disappearing.
- (void)bannerviewdidloadad:(adbannerview *)banner { if (!self.bannerisvisible) { [uiview beginanimations:@"animateadbanneron" context:null]; banner.frame = cgrectmake(0, 0, 320, 50); self.tableview.frame = cgrectmake(0, 50, 320, self.view.frame.size.height - 50); [uiview commitanimations]; self.bannerisvisible = yes; } } - (void)bannerview:(adbannerview *)banner didfailtoreceiveadwitherror:(nserror *)error { [uiview beginanimations:@"animateadbanneron" context:null]; banner.frame = cgrectmake(0, 0, 320, 0); self.tableview.frame = cgrectmake(0, 0, 320, self.view.frame.size.height); [uiview commitanimations]; self.bannerisvisible = no; }
Comments
Post a Comment