iOS 模态视图跳转 背景透明

2019-03-15  本文已影响0人  a_义

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

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

self.definesPresentationContext =YES;

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

modal.modalPresentationStyle =UIModalPresentationOverFullScreen; 

 [selfpresentViewController:modal animated:YEScompletion:nil];

上一篇 下一篇

猜你喜欢

热点阅读