Below is the code to left align the text in UIAlertView.
UIAlertView *someAlert = [[UIAlertView alloc] initWithTitle:@”Alert" message:@”Here long Description goes." delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[someAlert show];
[someAlert release];
((UILabel*)[[someAlert subviews] objectAtIndex:1]).textAlignment = UITextAlignmentLeft;//left alignment
1 comment:
The text alignment should be set before
[someAlert show];
Post a Comment