iOS改变UIActionSheet标题的颜色
#pragma mark - UIActionSheetDelegate
成都创新互联公司是一家朝气蓬勃的网站建设公司。公司专注于为企业提供信息化建设解决方案。从事网站开发,网站制作,网站设计,网站模板,微信公众号开发,软件开发,微信小程序开发,十余年建站对成都OPP胶袋等多个方面,拥有丰富建站经验。
- (void)willPresentActionSheet:(UIActionSheet *)actionSheet
{
UIButton *buttonLast = [[actionSheet subviews] lastObject];
NSLog(@"%@", buttonLast.titleLabel.textColor);
[buttonLastsetTitleColor:[UIColorcolorWithRed:0.992green:0.278blue:0.168alpha:1]forState:UIControlStateNormal];
UIButton *buttonFir = [[actionSheet subviews] objectAtIndex:1];
NSLog(@"%@", buttonFir.titleLabel.textColor);
[buttonFirsetTitleColor:[UIColorcolorWithRed:0green:0.478blue:1alpha:1] forState:UIControlStateNormal];
}
当前标题:iOS改变UIActionSheet标题的颜色
标题路径:http://myzitong.com/article/psisgc.html