present一个视图时,隐藏底部的tabbar.有何办法让ta
2017-12-22 本文已影响0人
开心就好2008
UIViewController *presentedVC = [[UIViewController alloc]init];
presentedVC.modalPresentationStyle = UIModalPresentationOverCurrentContext;
AppDelegate *appdelegate=(AppDelegate*)[[UIApplication sharedApplication] delegate];
appdelegate.window.rootViewController.definesPresentationContext = YES;
[appdelegate.window.rootViewController presentViewController:presentedVC animated:YES completion:nil];