美文网首页
新建controller底色透明

新建controller底色透明

作者: hie | 来源:发表于2019-03-08 11:36 被阅读0次
//当前vc
self.definesPresentationContext = YES;

//目标vc
tovc.modalPresentationStyle = UIModalPresentationOverCurrentContext;

//目标vc的底色透明
tovc.view.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.0];

//跳转
[self presentViewController:tovc animated:NO completion:nil];

相关文章

网友评论

      本文标题:新建controller底色透明

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