当前位置: 移动技术网 > 移动技术>移动开发>IOS > iOS 隐藏tabbar

iOS 隐藏tabbar

2019年01月02日  | 移动技术网移动技术  | 我要评论
-(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];
}

 

如您对本文有疑问或者有任何想说的,请 点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网