Class: ShowNextController

Inherits:
UIViewController
  • Object
show all
Defined in:
app/next_controller.rb

Direct Known Subclasses

ShearingController

Instance Method Summary collapse

Instance Method Details

#initObject



3
4
5
6
7
8
9
# File 'app/next_controller.rb', line 3

def init
  super.tap do
    if next_controller
      navigationItem.rightBarButtonItem = UIBarButtonItem.alloc.initWithTitle('Next', style:UIBarButtonItemStylePlain, target:self, action: :show_next)
    end
  end
end

#next_controllerObject



15
16
17
# File 'app/next_controller.rb', line 15

def next_controller
  nil
end

#show_nextObject



11
12
13
# File 'app/next_controller.rb', line 11

def show_next
  navigationController.pushViewController(next_controller, animated:true)
end