UIActivity activityViewController being presented modally on iPad instead of in popover

前端 未结 4 1159
误落风尘
误落风尘 2020-12-31 09:03

When using a customer UIActivity subclass in iOS 6, it\'s possible to specify a custom view controller that will be displayed when your action is chosen from the initial UIA

4条回答
  •  长发绾君心
    2020-12-31 09:52


    I had the same problem in iOS 7. The solution to show the custom view in the popover is to create and show it in the -(void)performActivity method instead of returning it in -(UIViewController *)activityViewController.

    You can see example code in my question/answer under this link:
    iOS 7 custom UIActivity as popover

提交回复
热议问题