LBActionSheet
LBActionSheet copied to clipboard
UITextAttributeFont* is deprecated: first deprecated in iOS 7.0 - Use NSFontAttributeName
Hi,
I know it's been a while since the last update, however I still find this library useable for the most part :)
However, I'm getting some warnings....
LBActionSheet/LBActionSheet.m:613:41: 'UITextAttributeFont' is deprecated: first deprecated in iOS 7.0 - Use NSFontAttributeName
LBActionSheet/LBActionSheet.m:614:38: 'UITextAttributeTextColor' is deprecated: first deprecated in iOS 7.0 - Use NSForegroundColorAttributeName
LBActionSheet/LBActionSheet.m:615:44: 'UITextAttributeTextShadowColor' is deprecated: first deprecated in iOS 7.0 - Use NSShadowAttributeName with an NSShadow instance as the value
LBActionSheet/LBActionSheet.m:616:60: 'UITextAttributeTextShadowOffset' is deprecated: first deprecated in iOS 7.0 - Use NSShadowAttributeName with an NSShadow instance as the value
Here's the code they refer to...
-(void)_button:(UIButton *)button setTitleAttributes:(NSDictionary *)attributes forState:(UIControlState)state {
button.titleLabel.font = attributes[UITextAttributeFont];
[button setTitleColor:attributes[UITextAttributeTextColor] forState:state];
[button setTitleShadowColor:attributes[UITextAttributeTextShadowColor] forState:state];
button.titleLabel.shadowOffset = [(NSValue*)attributes[UITextAttributeTextShadowOffset]
CGSizeValue];
}