File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 */
5555- (void )setAttributedTitle : (nullable NSAttributedString *)title forState : (ASControlState)state ;
5656
57+ #if TARGET_OS_IOS
5758/* *
5859 * Sets the title to use for the specified state. This will reset styled title previously set with -setAttributedTitle:forState.
5960 *
6364 * @param state The state that uses the specified title. The possible values are described in ASControlState.
6465 */
6566- (void )setTitle : (nonnull NSString *)title withFont : (nullable UIFont *)font withColor : (nullable UIColor *)color forState : (ASControlState)state ;
66-
67+ # endif
6768/* *
6869 * Returns the image used for a button state.
6970 *
Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ - (void)setLaysOutHorizontally:(BOOL)laysOutHorizontally
196196 [self setNeedsLayout ];
197197}
198198
199+ #if TARGET_OS_IOS
199200- (void )setTitle : (NSString *)title withFont : (UIFont *)font withColor : (UIColor *)color forState : (ASControlState)state
200201{
201202 NSDictionary *attributes = @{
@@ -207,6 +208,7 @@ - (void)setTitle:(NSString *)title withFont:(UIFont *)font withColor:(UIColor *)
207208 attributes: attributes];
208209 [self setAttributedTitle: string forState: state];
209210}
211+ #endif
210212
211213- (NSAttributedString *)attributedTitleForState : (ASControlState)state
212214{
You can’t perform that action at this time.
0 commit comments