UIActivityViewController issue iOS 7 and iOS 8?

后端 未结 3 842
自闭症患者
自闭症患者 2021-02-15 01:36

I’m building an article reading app for iPad. I have integrated a social sharing functionality which means user can share articles on Facebook, and google mail. I’m using

3条回答
  •  离开以前
    2021-02-15 02:02

    A lot might argue that checking for existence of the class explicitly is better than checking a hard coded version number. UIPopoverPresentationController may be deprecated at some future point, or there might be a (future ?) device which does not support the class, like the iPhone never used to support UIPopoverController or UISplitViewController..

    if (  NSClassFromString(@"UIPopoverPresentationController")   ) {
    
    AVC.popoverPresentationController.sourceView = _webView;
    
    
    }
    

提交回复
热议问题