Popovers cannot be presented from a view which does not have a window

前端 未结 13 1188
逝去的感伤
逝去的感伤 2020-11-30 08:22

What does this error indicate:

\"Popovers cannot be presented from a view which does not have a window.\"
相关标签:
13条回答
  • 2020-11-30 09:13

    I had a problem like this. Received this message when clicking a customized UIBarButton item that invoked a selector method with did performSeque.

    The problem was my segue was still attached to the UIBarButton item. It should have been attached to the main view of of the view controller. Changed this and worked fine.

    P.S., all this got started because I wanted to add and "info" button to my UIToolBar. This isn't one in the system provided list and should be.

    0 讨论(0)
提交回复
热议问题