mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Gate ASButtonNode setTitle method since [UIFont buttonFontSize] is unavailable on tvOS 9.1
This commit is contained in:
@@ -196,6 +196,7 @@
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
|
||||
#if TARGET_OS_IOS
|
||||
- (void)setTitle:(NSString *)title withFont:(UIFont *)font withColor:(UIColor *)color forState:(ASControlState)state
|
||||
{
|
||||
NSDictionary *attributes = @{
|
||||
@@ -207,6 +208,7 @@
|
||||
attributes:attributes];
|
||||
[self setAttributedTitle:string forState:state];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (NSAttributedString *)attributedTitleForState:(ASControlState)state
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user