Class: Z

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

Direct Known Subclasses

A, B, C, D, E

Instance Attribute Summary collapse

Instance Method Summary collapse

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



29
30
31
# File 'app/controllers/z.rb', line 29

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.accessibilityLabel = "Main"
  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
27
# File 'app/controllers/z.rb', line 24

def viewWillAppear( animated )            
  refresh_layout
  navigationController.setNavigationBarHidden( true, animated:false )
end