Class: ShowNextController
- Inherits:
-
UIViewController
- Object
- UIViewController
- ShowNextController
- Defined in:
- app/next_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#init ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/next_controller.rb', line 3 def init super.tap do if next_controller .rightBarButtonItem = UIBarButtonItem.alloc.initWithTitle('Next', style:UIBarButtonItemStylePlain, target:self, action: :show_next) end end end |
#next_controller ⇒ Object
15 16 17 |
# File 'app/next_controller.rb', line 15 def next_controller nil end |
#show_next ⇒ Object
11 12 13 |
# File 'app/next_controller.rb', line 11 def show_next .pushViewController(next_controller, animated:true) end |