@SuppressWarnings("unchecked") public NSAttributedString(String str, CTAttributedStringAttributes attrs) { super((SkipInit) null); if (attrs == null) { throw new NullPointerException("attrs"); } initObject(init(str, attrs.getDictionary().as(NSDictionary.class))); }
/** @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); } }