Changing the background color of a UIAlertView?
问题 I want to change the background color of my UIAlertView, but this doesn\'t appear to have a color attribute. 回答1: Background of AlertView is an image And you can change this image UIAlertView *theAlert = [[[UIAlertView alloc] initWithTitle:@"Atention" message: @"YOUR MESSAGE HERE", nil) delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] autorelease]; [theAlert show]; UILabel *theTitle = [theAlert valueForKey:@"_titleLabel"]; [theTitle setTextColor:[UIColor redColor]]; UILabel