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

前端 未结 13 1237
逝去的感伤
逝去的感伤 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 08:51

    There will be a view from which you asks to display your popover.The reason for this error is because you didn't made this view as a subview of the window.

     [self.view addSubview:displayPopOverVC];
    

    where displayPopOverVC is the view controller from which the popOver appears

提交回复
热议问题