UIActivity activityViewController being presented modally on iPad instead of in popover

前端 未结 4 1143
误落风尘
误落风尘 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:53

    I just had the same problem but solved it by setting the ViewController to:

    [yourViewController setModalPresentationStyle:UIModalPresentationPageSheet];
    

    in

    - (UIViewController *)activityViewController
    

    hope this helps

提交回复
热议问题