amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 9 forks source link

tvos bridgesupport for `UIAlertViewStyleDefault` #22

Closed amirrajan closed 7 years ago

amirrajan commented 7 years ago
$ ag --hh UIAlertViewStyleDefault
Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h
16:    UIAlertViewStyleDefault = 0,
55:// Alert view style - defaults to UIAlertViewStyleDefault
amirrajan commented 7 years ago

This is not allowed to be used on TV OS. Here is how the enumeration is defined in the header file:

typedef NS_ENUM(NSInteger, UIAlertViewStyle) {
    UIAlertViewStyleDefault = 0,
    UIAlertViewStyleSecureTextInput,
    UIAlertViewStylePlainTextInput,
    UIAlertViewStyleLoginAndPasswordInput
} __TVOS_PROHIBITED;

The header file is located at: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlertView.h