UIActionSheet cancel button strange behaviour

前端 未结 7 1031
猫巷女王i
猫巷女王i 2020-12-04 05:44

I have a UIBarButtonItem opening an action sheet to offer users choices about what to do. Everything works as expected unless I try to click on the \"Cancel\" button. The ta

7条回答
  •  萌比男神i
    2020-12-04 05:58

    FYI - had the same problem with UIDocumentInteractionController's actionsheet stepping on the tabbar. Used the following to fix.

    UIViewController *parentView = [[self parentViewController] parentViewController];
    [docController presentOptionsMenuFromRect: rect inView: parentView.view animated:YES];
    

提交回复
热议问题