-(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代码详解的全部叙述,希望对大家有所帮助!
如对本文有疑问, 点击进行留言回复!!
灰色预测模型GM(1,1)的发展系数a=0或无限接近于0的时候预测的误差以及解决办法
网友评论