`
dcj3sjt126com
  • 浏览: 1827242 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

改变UIActionSheet button字体颜色

    博客分类:
  • IOS
 
阅读更多

实现UIActionSheet 的代理

- (void)willPresentActionSheet:(UIActionSheet *)actionSheet;  // before animation and showing view

 

- (void)willPresentActionSheet:(UIActionSheet *)actionSheet
{
    for (UIView *subViwe in actionSheet.subviews) {
        if ([subViwe isKindOfClass:[UIButton class]]) {
            UIButton *button = (UIButton*)subViwe;
            [button setTitleColor:[UIColor colorWithHexString:BLUE_GREEN_COLOR]forState:UIControlStateNormal];
        }
    }
}

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics