lib/ios/sugarcube-uikit/uibutton.rb in sugarcube-2.7.1 vs lib/ios/sugarcube-uikit/uibutton.rb in sugarcube-2.8.0

- old
+ new

@@ -6,14 +6,27 @@ def setTitle(value) setTitle(value, forState: UIControlStateNormal) end + def titleColor + titleColorForState(UIControlStateNormal) + end + alias title_color titleColor + + def setTitleColor(value) + value = value.uicolor if value.respond_to?(:uicolor) + setTitleColor(value, forState: UIControlStateNormal) + end + alias title_color= setTitleColor + def attributedTitle attributedTitleForState(UIControlStateNormal) end + alias attributed_title attributedTitle def setAttributedTitle(value) setAttributedTitle(value, forState: UIControlStateNormal) end + alias attributed_title= setAttributedTitle end