Class: PresentModalController

Inherits:
UIViewController show all
Defined in:
app/controllers/present_modal_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from UIViewController

#autorotateMask, #autorotateToOrientation, #top_level_view, #viewDidLoad, #willAnimateRotationToInterfaceOrientation

Methods included from Teacup::Controller

included, #layoutDidLoad, #stylesheet=, #teacupDidLoad

Methods included from Teacup::Layout

#auto, included, #layout, #stylesheet, #stylesheet=, #subview, #top_level_view

Instance Attribute Details

Returns the value of attribute modal.



2
3
4
# File 'app/controllers/present_modal_controller.rb', line 2

def modal
  @modal
end

Instance Method Details

#open_modal_buttonObject



11
12
13
14
# File 'app/controllers/present_modal_controller.rb', line 11

def open_modal_button
  @modal = ConstraintsController.new
  self.presentViewController(@modal, animated:true, completion:nil)
end