Top Level Namespace
Defined Under Namespace
Modules: MotionModel Classes: Ansi, Array, Debug, FakeDelegate, Hash, Inflector, NilClass, String, Symbol
Instance Method Summary collapse
-
#UIInterfaceOrientationIsLandscape(orientation) ⇒ Object
These are C macros in iOS SDK.
- #UIInterfaceOrientationIsPortrait(orientation) ⇒ Object
Instance Method Details
#UIInterfaceOrientationIsLandscape(orientation) ⇒ Object
These are C macros in iOS SDK. Not workable for Ruby.
327 328 329 330 |
# File 'lib/motion_model/ext.rb', line 327 def UIInterfaceOrientationIsLandscape(orientation) orientation == UIInterfaceOrientationLandscapeLeft || orientation == UIInterfaceOrientationLandscapeRight end |
#UIInterfaceOrientationIsPortrait(orientation) ⇒ Object
332 333 334 335 |
# File 'lib/motion_model/ext.rb', line 332 def UIInterfaceOrientationIsPortrait(orientation) orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown end |