Sha256: 08aaf83b3656fd3bbb7de15601700a0406d2d5580c3aa5f93c5ba504299349b2
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
class Step1ViewController < UIViewController stylesheet :step_1 layout :step do @button = subview(UIButton, :button) end def viewWillAppear(animated) super @button.on(:touch){ self.next } end def viewWillDisappear(animated) super @button.off(:touch) end end class Step2ViewController < UIViewController stylesheet :step_2 layout :step do @next_button = subview(UIButton, :next_button) @back_button = subview(UIButton, :back_button) end def viewWillAppear(animated) super @next_button.on(:touch) {self.next} @back_button.on(:touch) {self.previous} end def viewWillDisappear(animated) super @next_button.off(:touch) @back_button.off(:touch) end end class Step3ViewController < UIViewController stylesheet :step_3 layout :step do @next_button = subview(UIButton, :next_button) @back_button = subview(UIButton, :back_button) end def viewWillAppear(animated) super @next_button.on(:touch) {self.finish} @back_button.on(:touch) {self.previous} end def viewWillDisappear(animated) super @next_button.off(:touch) @back_button.off(:touch) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-wizard-0.1 | samples/wizard-2/app/controllers/steps_view_controller.rb |