Class: Z
- Inherits:
-
UIViewController
- Object
- UIViewController
- Z
- Includes:
- MotionAwesome
- Defined in:
- app/controllers/z.rb
Constant Summary
Constants included from MotionAwesome
Instance Attribute Summary collapse
-
#comp ⇒ Object
Returns the value of attribute comp.
Instance Method Summary collapse
- #didRotateFromInterfaceOrientation(orientation) ⇒ Object
-
#initialize ⇒ Z
constructor
A new instance of Z.
- #viewDidLoad ⇒ Object
- #viewWillAppear(animated) ⇒ Object
Methods included from MotionAwesome
attributed_text, button, button_types, font, hex_for_icon, label, map_types, parse_options, plist, xform_icon
Constructor Details
#initialize ⇒ Z
Returns a new instance of Z.
6 7 8 |
# File 'app/controllers/z.rb', line 6 def initialize @comp = nil end |
Instance Attribute Details
#comp ⇒ Object
Returns the value of attribute comp.
4 5 6 |
# File 'app/controllers/z.rb', line 4 def comp @comp end |
Instance Method Details
#didRotateFromInterfaceOrientation(orientation) ⇒ Object
28 29 30 |
# File 'app/controllers/z.rb', line 28 def didRotateFromInterfaceOrientation( orientation ) refresh_layout end |
#viewDidLoad ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/z.rb', line 10 def viewDidLoad view.setBackgroundColor( 0x000000.uicolor ) view.on_tap do next_ctrl end view.on_swipe( :left ) do next_ctrl end view.on_swipe( :right ) do prev_ctrl end end |
#viewWillAppear(animated) ⇒ Object
24 25 26 |
# File 'app/controllers/z.rb', line 24 def viewWillAppear( animated ) refresh_layout end |