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

前端 未结 13 1284
逝去的感伤
逝去的感伤 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:48

    I replaced

    [actionSheet showFromBarButtonItem:self.navigationController.navigationItem.leftBarButtonItem animated:YES];
    

    with

    [actionSheet showInView:self.view];
    

提交回复
热议问题