lib/ios/sugarcube-constants/symbol.rb in sugarcube-2.9.1 vs lib/ios/sugarcube-constants/symbol.rb in sugarcube-2.10.0

- old
+ new

@@ -181,10 +181,18 @@ def uitablecellseparatorstyle SugarCube.look_in(self, Symbol.uitablecellseparatorstyle, Symbol.uitablecellseparatorstyle__deprecated) end + def presentationstyle + SugarCube.look_in(self, Symbol.presentationstyle) + end + + def transitionstyle + SugarCube.look_in(self, Symbol.transitionstyle) + end + def uialertstyle SugarCube.look_in(self, Symbol.uialertstyle) end alias uialertviewstyle uialertstyle @@ -292,10 +300,13 @@ attr :uitablecellaccessorytype__deprecated attr :uitablecellselectionstyle attr :uitablecellseparatorstyle attr :uitablecellseparatorstyle__deprecated + attr :presentationstyle + attr :transitionstyle + attr :uialertstyle attr :uiactionstyle attr :uialertcontrollerstyle attr :uialertactionstyle @@ -763,9 +774,28 @@ none: UITableViewCellSeparatorStyleNone, single_line: UITableViewCellSeparatorStyleSingleLine, single: UITableViewCellSeparatorStyleSingleLine, single_line_etched: UITableViewCellSeparatorStyleSingleLineEtched, etched: UITableViewCellSeparatorStyleSingleLineEtched, + } + + @presentationstyle = { + fullscreen: UIModalPresentationFullScreen, + page_sheet: UIModalPresentationPageSheet, + form_sheet: UIModalPresentationFormSheet, + current_context: UIModalPresentationCurrentContext, + custom: UIModalPresentationCustom, + over_fullscreen: UIModalPresentationOverFullScreen, + over_current_context: UIModalPresentationOverCurrentContext, + popover: UIModalPresentationPopover, + none: UIModalPresentationNone + } + + @transitionstyle = { + cover_vertical: UIModalTransitionStyleCoverVertical, + flip_horizontal: UIModalTransitionStyleFlipHorizontal, + cross_dissolve: UIModalTransitionStyleCrossDissolve, + partial_curl: UIModalTransitionStylePartialCurl } @uialertstyle = { default: UIAlertViewStyleDefault, secure_text_input: UIAlertViewStyleSecureTextInput,