美文网首页
iOS 模态视图跳转 背景透明

iOS 模态视图跳转 背景透明

作者: a_义 | 来源:发表于2019-03-15 20:54 被阅读0次

ModalViewController * modal = [[ModalViewController alloc] init];

//把当前控制器作为背景

self.definesPresentationContext =YES;

//设置模态视图弹出样式

modal.modalPresentationStyle =UIModalPresentationOverFullScreen; 

 [selfpresentViewController:modal animated:YEScompletion:nil];

相关文章

网友评论

      本文标题:iOS 模态视图跳转 背景透明

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