iOS 设置UIActionSheet 按钮颜色

来源:互联网 发布:thinkphp分销商城源码 编辑:程序博客网 时间:2024/05/24 07:23

- (void)willPresentActionSheet:(UIActionSheet *)actionSheet {

    

    for (UIView *viewin actionSheet.subviews) {

        if (view.tag ==1) {

            UIButton *button = (UIButton *) view;

            

            //            [button setImage:[UIImage imageNamed:@"注册2.jpg"] forState:UIControlStateNormal];

            [button setTitleColor:[UIColorredColor] forState:UIControlStateNormal];

            [button setSelected:YES];

        }

    }

}

0 0
原创粉丝点击