コード例 #1
0
ファイル: NSAttributedString.java プロジェクト: wynney/robovm
 /*</constructors>*/
 public NSAttributedString(String str, NSAttributedStringAttributes attrs) {
   super((SkipInit) null);
   if (attrs == null) {
     throw new NullPointerException("attrs");
   }
   initObject(init(str, attrs.getDictionary()));
 }
コード例 #2
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);
   }
 }