I am interested in making a left-aligned UIAlertView with several lines like a bulletin list that would look like the following:
to align left:
NSArray *subviewArray = alert.subviews;
for(int x = 0; x < [subviewArray count]; x++){
if([[[subviewArray objectAtIndex:x] class] isSubclassOfClass:[UILabel class]]) {
UILabel *label = [subviewArray objectAtIndex:x];
label.textAlignment = UITextAlignmentLeft;
}
To show a red background behind alert view:
alert.backgroundColor=[UIColor redColor];