美文网首页我爱编程IOS
present一个视图时,隐藏底部的tabbar.有何办法让ta

present一个视图时,隐藏底部的tabbar.有何办法让ta

作者: 开心就好2008 | 来源:发表于2017-12-22 16:36 被阅读0次

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];

相关文章

网友评论

    本文标题:present一个视图时,隐藏底部的tabbar.有何办法让ta

    本文链接:https://www.haomeiwen.com/subject/chlxgxtx.html