Class: UISegmentedControl

Inherits:
Object show all
Defined in:
lib/ios/sugarcube-factories/uisegmentedcontrol.rb

Class Method Summary collapse

Class Method Details

.bar(items) ⇒ Object



15
16
17
18
19
# File 'lib/ios/sugarcube-factories/uisegmentedcontrol.rb', line 15

def bar(items)
  ret = self.alloc.initWithItems(items)
  ret.segmentedControlStyle = UISegmentedControlStyleBar
  ret
end

.bezeled(items) ⇒ Object



21
22
23
24
25
# File 'lib/ios/sugarcube-factories/uisegmentedcontrol.rb', line 21

def bezeled(items)
  ret = self.alloc.initWithItems(items)
  ret.segmentedControlStyle = UISegmentedControlStyleBezeled
  ret
end

.bordered(items) ⇒ Object



9
10
11
12
13
# File 'lib/ios/sugarcube-factories/uisegmentedcontrol.rb', line 9

def bordered(items)
  ret = self.alloc.initWithItems(items)
  ret.segmentedControlStyle = UISegmentedControlStyleBordered
  ret
end

.plain(items) ⇒ Object



3
4
5
6
7
# File 'lib/ios/sugarcube-factories/uisegmentedcontrol.rb', line 3

def plain(items)
  ret = self.alloc.initWithItems(items)
  ret.segmentedControlStyle = UISegmentedControlStylePlain
  ret
end