iOS : ModalView with background transparent?

前端 未结 6 918
慢半拍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:33

    The quick answer is you cannot present transparent modal view, not with presentViewController:animated:completion: method. Because you cannot make the modal view controller transparent (your view is placer on top of that).

    You can make custom view and you can manually animate it, this is a way to create something what you need.

提交回复
热议问题