与IOS10共享的活动列表为空

问题描述:

我与SO iOS10共享有一些问题。 我写了这个代码来选择活动和共享一个链接与IOS10共享的活动列表为空

@IBAction func shareAction(_ sender: AnyObject) { 
    let objectsToShare = ["Shared by: xxxxxx**strong text**", url] 
    let activityVC = UIActivityViewController(activityItems: objectsToShare, applicationActivities: nil) 

    //New Excluded Activities Code 
    activityVC.excludedActivityTypes = [UIActivityType.airDrop, UIActivityType.addToReadingList] 

    if UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiom.phone { 
     self.present(activityVC, animated: true, completion: nil) 
    }else { 
     let popup: UIPopoverController = UIPopoverController(contentViewController: activityVC) 
     popup.present(from: CGRect(x: self.view.frame.size.width/2, y: self.view.frame.size.height/4, width: 0, height: 0), in: self.view, permittedArrowDirections: UIPopoverArrowDirection.any, animated: true) 
    } 
} 

在以前版本的新视图控制器被打开,选择要分享哪些活动中使用,但现在我看到这个

No activity is shown 难道没有人有这个问题?
感谢所有...

非常奇怪....问题自动解决。 所有作品现在没有任何补丁 我的iPhone更新到iOS 10.0.2,也许这个版本解决了问题