lib/ios/sugarcube-constants/symbol.rb in sugarcube-2.2.0 vs lib/ios/sugarcube-constants/symbol.rb in sugarcube-2.3.0
- old
+ new
@@ -191,10 +191,18 @@
def uiactionstyle
SugarCube.look_in(self, Symbol.uiactionstyle)
end
alias uiactionsheetstyle uiactionstyle
+ def uialertcontrollerstyle
+ SugarCube.look_in(self, Symbol.uialertcontrollerstyle)
+ end
+
+ def uialertactionstyle
+ SugarCube.look_in(self, Symbol.uialertactionstyle)
+ end
+
def uiimagesource
SugarCube.look_in(self, Symbol.uiimagesource)
end
alias uiimagesourcetype uiimagesource
@@ -287,10 +295,13 @@
attr :uitablecellseparatorstyle__deprecated
attr :uialertstyle
attr :uiactionstyle
+ attr :uialertcontrollerstyle
+ attr :uialertactionstyle
+
attr :uiimagesource
attr :uiimagecapture
attr :uiimagecamera
attr :uiimagequality
@@ -760,9 +771,25 @@
default: UIAlertViewStyleDefault,
secure_text_input: UIAlertViewStyleSecureTextInput,
plain_text_input: UIAlertViewStylePlainTextInput,
login_and_password_input: UIAlertViewStyleLoginAndPasswordInput,
}
+
+ if defined?(UIAlertControllerStyleAlert)
+ @uialertcontrollerstyle = {
+ alert: UIAlertControllerStyleAlert,
+ action_sheet: UIAlertControllerStyleActionSheet
+ }
+
+ @uialertactionstyle = {
+ default: UIAlertActionStyleDefault,
+ cancel: UIAlertActionStyleCancel,
+ destructive: UIAlertActionStyleDestructive
+ }
+ else
+ @uialertcontrollerstyle = {}
+ @uialertactionstyle = {}
+ end
@uiactionstyle = {
automatic: UIActionSheetStyleAutomatic,
default: UIActionSheetStyleDefault,
black_translucent: UIActionSheetStyleBlackTranslucent,