Class: UIButton

Inherits:
Object show all
Defined in:
lib/sugarcube/uibutton.rb

Class Method Summary collapse

Class Method Details

.contactObject



48
49
50
51
52
53
# File 'lib/sugarcube/uibutton.rb', line 48

def contact
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:contact.uibuttontype)
end

.contact_addObject



54
55
56
57
58
59
# File 'lib/sugarcube/uibutton.rb', line 54

def contact_add
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:contact_add.uibuttontype)
end

.customObject



3
4
5
# File 'lib/sugarcube/uibutton.rb', line 3

def custom
  self.buttonWithType(:custom.uibuttontype)
end

.detailObject



18
19
20
21
22
23
# File 'lib/sugarcube/uibutton.rb', line 18

def detail
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:detail.uibuttontype)
end

.detail_disclosureObject



24
25
26
27
28
29
# File 'lib/sugarcube/uibutton.rb', line 24

def detail_disclosure
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:detail_disclosure.uibuttontype)
end

.infoObject



30
31
32
33
34
35
# File 'lib/sugarcube/uibutton.rb', line 30

def info
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:info.uibuttontype)
end

.info_darkObject



42
43
44
45
46
47
# File 'lib/sugarcube/uibutton.rb', line 42

def info_dark
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:info_dark.uibuttontype)
end

.info_lightObject



36
37
38
39
40
41
# File 'lib/sugarcube/uibutton.rb', line 36

def info_light
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:info_light.uibuttontype)
end

.roundedObject



6
7
8
9
10
11
# File 'lib/sugarcube/uibutton.rb', line 6

def rounded
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:rounded.uibuttontype)
end

.rounded_rectObject



12
13
14
15
16
17
# File 'lib/sugarcube/uibutton.rb', line 12

def rounded_rect
  if self != UIButton
    raise "Custom subclasses of UIButton most be created using UIButton.custom"
  end
  self.buttonWithType(:rounded_rect.uibuttontype)
end