-(void)willPresentAlertView:(UIAlertView *)alertView
{
[alertView changeBackground];
switch(alertView.tag) {
caseTAG_ALERT:
for(UIView *view inalertView.subviews) {
if([view isKindOfClass:[UILabelclass]]){
UILabel* label = (UILabel *)view;
if([label.text isEqualToString:@"今天天气真好"]) {
label.textAlignment =UITextAlignmentLeft;
// 其它的属性也可以改
}
}
}
break;
default:
break;
}
}