iOS 隐藏自定义tabbar

时间:2023-03-09 04:17:25
iOS  隐藏自定义tabbar

iOS  隐藏自定义tabbar

-(void)viewWillAppear:(BOOL)animated
{ NSArray *array=self.tabBarController.view.subviews; UIView *view=array[]; view.frame=CGRectMake(, [UIScreen mainScreen ].bounds.size.height, [UIScreen mainScreen ].bounds.size.width, ); [UIView commitAnimations]; } - (void)viewWillDisappear:(BOOL)animated
{ NSArray *array=self.tabBarController.view.subviews; UIView *view=array[]; view.frame=CGRectMake(, [UIScreen mainScreen ].bounds.size.height-, [UIScreen mainScreen ].bounds.size.width, ); [UIView commitAnimations];
}