Class: UIButton
Class Method Summary collapse
- .contact ⇒ Object
- .contact_add ⇒ Object
- .custom ⇒ Object
- .detail ⇒ Object
- .detail_disclosure ⇒ Object
- .info ⇒ Object
- .info_dark ⇒ Object
- .info_light ⇒ Object
- .rounded ⇒ Object
- .rounded_rect ⇒ Object
- .system ⇒ Object
Class Method Details
.contact ⇒ Object
48 49 50 51 52 53 |
# File 'lib/sugarcube-factories/uibutton.rb', line 48 def contact if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeContactAdd) end |
.contact_add ⇒ Object
54 55 56 57 58 59 |
# File 'lib/sugarcube-factories/uibutton.rb', line 54 def contact_add if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeContactAdd) end |
.custom ⇒ Object
3 4 5 |
# File 'lib/sugarcube-factories/uibutton.rb', line 3 def custom self.(UIButtonTypeCustom) end |
.detail ⇒ Object
18 19 20 21 22 23 |
# File 'lib/sugarcube-factories/uibutton.rb', line 18 def detail if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeDetailDisclosure) end |
.detail_disclosure ⇒ Object
24 25 26 27 28 29 |
# File 'lib/sugarcube-factories/uibutton.rb', line 24 def detail_disclosure if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeDetailDisclosure) end |
.info ⇒ Object
30 31 32 33 34 35 |
# File 'lib/sugarcube-factories/uibutton.rb', line 30 def info if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeInfoLight) end |
.info_dark ⇒ Object
42 43 44 45 46 47 |
# File 'lib/sugarcube-factories/uibutton.rb', line 42 def info_dark if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeInfoDark) end |
.info_light ⇒ Object
36 37 38 39 40 41 |
# File 'lib/sugarcube-factories/uibutton.rb', line 36 def info_light if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeInfoLight) end |
.rounded ⇒ Object
6 7 8 9 10 11 |
# File 'lib/sugarcube-factories/uibutton.rb', line 6 def rounded if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.(UIButtonTypeRoundedRect) end |