Class: UIPickerView

Inherits:
Object show all
Defined in:
lib/ios/sugarcube-ui/uipickerview.rb

Instance Method Summary collapse

Instance Method Details

#[](index) ⇒ Object



2
3
4
# File 'lib/ios/sugarcube-ui/uipickerview.rb', line 2

def [] index
  self.selectedRowInComponent(index)
end

#[]=(index, value) ⇒ Object



6
7
8
# File 'lib/ios/sugarcube-ui/uipickerview.rb', line 6

def []= index, value
  self.selectRow(value, inComponent:index, animated:true)
end