Add a UIView above all, even the navigation bar

前端 未结 17 1682
悲&欢浪女
悲&欢浪女 2020-11-29 15:36

I want to display, above any other views, even the navigation bar, a kind of \"pop-up\" view that looks like this:

  • full screen black background with a 0.5 alph
17条回答
  •  爱一瞬间的悲伤
    2020-11-29 15:57

    I'd use a UIViewController subclass containing a "Container View" that embeds your others view controllers. You'll then be able to add the navigation controller inside the Container View (using the embed relationship segue for example).

    See Implementing a Container View Controller

提交回复
热议问题