IOS 8 iPad App Crashes When UIActivityViewController Is Called

前端 未结 5 467
借酒劲吻你
借酒劲吻你 2020-12-19 04:08

When a UIActivityViewController is called on the iPhone in this app, it works perfectly, but when called on a iPad, the app crashes. Below is the code I used:



        
5条回答
  •  情书的邮戳
    2020-12-19 04:55

    I added for Swift 3:

    activityViewController.popoverPresentationController?.sourceView = self.view
    

    fixed my issue.

提交回复
热议问题