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

#auto, #autorotateMask, #autorotateToOrientation, layout, #layoutDidLoad, stylesheet, #stylesheet=, #top_level_view, #viewDidLoad, #willAnimateRotationToInterfaceOrientation

Methods included from Teacup::Layout

#layout, #stylesheet, #stylesheet=, #subview

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