iOS 隐藏tabbar代码详解
程序员文章站
2023-12-10 13:30:58
-(void)viewwillappear:(bool)animated
{
nsarray *array=self.tabbarcontroller.view...
-(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]; }
以上所述是小编给大家介绍的ios 隐藏tabbar代码详解的全部叙述,希望对大家有所帮助!