lib/sugarcube/symbol.rb in sugarcube-0.20.13 vs lib/sugarcube/symbol.rb in sugarcube-0.20.15
- old
+ new
@@ -60,10 +60,13 @@
attr :tableview_cellstyles
attr :tableview_cellaccessorytype
attr :tableview_cellselectionstyle
attr :tableview_cellseparatorstyle
+ attr :alert_view_styles
+ attr :action_sheet_styles
+
attr :image_sourcetypes
attr :image_capturemode
attr :image_cameradevice
attr :image_quality
@@ -352,10 +355,24 @@
single: UITableViewCellSeparatorStyleSingleLine,
singlelineetched: UITableViewCellSeparatorStyleSingleLineEtched,
etched: UITableViewCellSeparatorStyleSingleLineEtched,
}
+ @alert_view_styles = {
+ default: UIAlertViewStyleDefault,
+ secure_text_input: UIAlertViewStyleSecureTextInput,
+ plain_text_input: UIAlertViewStylePlainTextInput,
+ login_and_password_input: UIAlertViewStyleLoginAndPasswordInput,
+ }
+
+ @action_sheet_styles = {
+ automatic: UIActionSheetStyleAutomatic,
+ default: UIActionSheetStyleDefault,
+ black_translucent: UIActionSheetStyleBlackTranslucent,
+ black_opaque: UIActionSheetStyleBlackOpaque,
+ }
+
@statusbar_styles = {
default: UIStatusBarStyleDefault,
black: UIStatusBarStyleBlackOpaque,
translucent: UIStatusBarStyleBlackTranslucent,
}
@@ -625,9 +642,19 @@
alias uitableviewcellselectionstyle uitablecellselectionstyle
def uitablecellseparatorstyle
sugarcube_look_in(Symbol.tableview_cellseparatorstyle)
end
+
+ def uialertstyle
+ sugarcube_look_in(Symbol.alert_view_styles)
+ end
+ alias uialertviewstyle uialertstyle
+
+ def uiactionstyle
+ sugarcube_look_in(Symbol.action_sheet_styles)
+ end
+ alias uiactionsheetstyle uiactionstyle
def uistatusbarstyle
sugarcube_look_in(Symbol.statusbar_styles)
end