iOS : ModalView with background transparent?

前端 未结 6 892
慢半拍i
慢半拍i 2020-12-24 02:14

I want to show a modalview on a viewController. (which has a naviguation controller).

On my view i have text, and a button to show the modalview.

I created

6条回答
  •  醉梦人生
    2020-12-24 02:48

    If you want your modalVC to be over the tabbar you need to define the presentation style as UIModalPresentationOverFullScreen

    [_presentedViewController setModalPresentationStyle:UIModalPresentationOverFullScreen];
    
    [_presentingViewController presentViewController:_presentedViewController animated:YES completion:nil];
    

提交回复
热议问题