Sha256: b230653a0812f8fd6229dbd240edcc9e3c5baf3a9f5c7166056a552d85e7254f

Contents?: true

Size: 417 Bytes

Versions: 8

Compression:

Stored size: 417 Bytes

Contents

class ShowNextController < UIViewController

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

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

  def next_controller
    nil
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geomotion-0.15.0 app/next_controller.rb
geomotion-0.14.0 app/next_controller.rb
geomotion-0.13.2 app/next_controller.rb
geomotion-0.13.1 app/next_controller.rb
geomotion-0.13.0 app/next_controller.rb
geomotion-0.12.3 app/next_controller.rb
geomotion-0.12.2 app/next_controller.rb
geomotion-0.12.1 app/next_controller.rb