iOS 隐藏tabbar
程序员文章站
2022-10-31 15:02:23
-(void)viewwillappear:(bool)animated
{
nsarray *array=self.tabbarcontroller.view.subv...
-(void)viewwillappear:(bool)animated { nsarray *array=self.tabbarcontroller.view.subviews; uiview *view=array[2]; view.frame=cgrectmake(0, [uiscreen mainscreen ].bounds.size.height, [uiscreen mainscreen ].bounds.size.width, 49); [uiview commitanimations]; } - (void)viewwilldisappear:(bool)animated { nsarray *array=self.tabbarcontroller.view.subviews; uiview *view=array[2]; view.frame=cgrectmake(0, [uiscreen mainscreen ].bounds.size.height-49, [uiscreen mainscreen ].bounds.size.width, 49); [uiview commitanimations]; }
上一篇: 欧美十大最受欢迎潮牌,你了解哪几个