iOS 隐藏tabbar
程序员文章站
2022-05-14 09:49:32
-(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]; }
上一篇: Android 仿简书搜索栏实现方法
下一篇: HTML复习 2019-2-11