Class: RMXActionSheet

Inherits:
UIActionSheet
  • Object
show all
Defined in:
lib/motion/RMXActionSheet.rb

Instance Method Summary collapse

Instance Method Details

#actionSheet(actionSheet, clickedButtonAtIndex: buttonIndex) ⇒ Object



9
10
11
12
# File 'lib/motion/RMXActionSheet.rb', line 9

def actionSheet(actionSheet, clickedButtonAtIndex:buttonIndex)
  title = actionSheet.buttonTitleAtIndex(buttonIndex)
  RMX.new(self).trigger(:clickedButton, { :index => buttonIndex, :title => title })
end

#initObject



3
4
5
6
7
# File 'lib/motion/RMXActionSheet.rb', line 3

def init
  s = super
  self.delegate = self
  s
end