class UIButton
Public Class Methods
contact()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 56 def contact if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeContactAdd) end
contact_add()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 63 def contact_add if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeContactAdd) end
custom()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 3 def custom self.buttonWithType(UIButtonTypeCustom) end
detail()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 21 def detail if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeDetailDisclosure) end
detail_disclosure()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 28 def detail_disclosure if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeDetailDisclosure) end
info()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 35 def info if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeInfoLight) end
info_dark()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 49 def info_dark if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeInfoDark) end
info_light()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 42 def info_light if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeInfoLight) end
rounded()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 7 def rounded if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeRoundedRect) end
rounded_rect()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 14 def rounded_rect if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeRoundedRect) end
system()
click to toggle source
# File lib/ios/sugarcube-factories/uibutton.rb, line 70 def system if self != UIButton raise "Custom subclasses of UIButton must be created using UIButton.custom" end self.buttonWithType(UIButtonTypeSystem) end
Public Instance Methods
attributedTitle()
click to toggle source
# File lib/ios/sugarcube-ui/uibutton.rb, line 22 def attributedTitle attributedTitleForState(UIControlStateNormal) end
Also aliased as: attributed_title
setAttributedTitle(value)
click to toggle source
# File lib/ios/sugarcube-ui/uibutton.rb, line 27 def setAttributedTitle(value) setAttributedTitle(value, forState: UIControlStateNormal) end
Also aliased as: attributed_title=
setTitle(value)
click to toggle source
# File lib/ios/sugarcube-ui/uibutton.rb, line 7 def setTitle(value) setTitle(value, forState: UIControlStateNormal) end
setTitleColor(value)
click to toggle source
# File lib/ios/sugarcube-ui/uibutton.rb, line 16 def setTitleColor(value) value = value.uicolor if value.respond_to?(:uicolor) setTitleColor(value, forState: UIControlStateNormal) end
Also aliased as: title_color=
title()
click to toggle source
# File lib/ios/sugarcube-ui/uibutton.rb, line 3 def title titleForState(UIControlStateNormal) end
titleColor()
click to toggle source
# File lib/ios/sugarcube-ui/uibutton.rb, line 11 def titleColor titleColorForState(UIControlStateNormal) end
Also aliased as: title_color