Ejemplo n.º 1
0
 /** @since Available in iOS 5.0 and later. */
 public void setTitleTextAttributes(
     NSAttributedStringAttributes attributes, UIControlState state) {
   if (attributes == null) {
     setTitleTextAttributesDictionary(null, state);
   } else {
     setTitleTextAttributesDictionary(attributes.getDictionary(), state);
   }
 }
Ejemplo n.º 2
0
 /** @since Available in iOS 5.0 and later. */
 @WeaklyLinked
 public void setTitleCoreTextAttributes(
     CTAttributedStringAttributes attributes, UIControlState state) {
   if (attributes == null) {
     setTitleTextAttributesDictionary(null, state);
   } else {
     setTitleTextAttributesDictionary(attributes.getDictionary().as(NSDictionary.class), state);
   }
 }