Class: Z

Inherits:
UIViewController
  • Object
show all
Includes:
MotionAwesome
Defined in:
app/controllers/z.rb

Direct Known Subclasses

A, B, C, D, E

Constant Summary

Constants included from MotionAwesome

MotionAwesome::VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MotionAwesome

attributed_text, button, button_types, font, hex_for_icon, label, map_types, parse_options, plist, xform_icon

Constructor Details

#initializeZ

Returns a new instance of Z.



6
7
8
# File 'app/controllers/z.rb', line 6

def initialize
  @comp = nil
end

Instance Attribute Details

#compObject

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

#viewDidLoadObject



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