UIActivityViewController issue iOS 7 and iOS 8?

后端 未结 3 1355
悲&欢浪女
悲&欢浪女 2021-02-15 01:22

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:09

    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;
    
    
    }
    

提交回复
热议问题