You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by shazron <gi...@git.apache.org> on 2014/11/14 21:23:53 UTC

[GitHub] cordova-plugin-dialogs pull request: Fix CB-7734. Changed plugin t...

Github user shazron commented on the pull request:

    https://github.com/apache/cordova-plugin-dialogs/pull/39#issuecomment-63123720
  
    Hi Julio,
    I'm sure you will have followed the dev@ discussion by now.
    
    Two changes are required, since you are using iOS 8 API code.
    
    1. Change your use of `[UIAlertController class]` to `NSClassFromString(@"UIAlertController")`. On iOS devices < iOS 8 your code will crash.
    2. Wrap the whole code block with iOS 8 code with `#ifdef __IPHONE_8_0`. This way people using the Xcode 5 (which is still allowed by Apple) will not have compilation errors.
    
    I would test the adjusted code out on an iOS 7 and iOS 8 device, and compile using Xcode 5 and 6.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org