0

In my iPad i am using alertview, my problem is when i am trying to increase the width of alertview it was not increasing. Any Max width is there for alertview. As i am beginner for this. can anybody help me. i used the like below

- (void)willPresentAlertView:(UIAlertView *)alertView {
    if ( alertView.tag==1 ) //MP: This tag differentiates between many alert views..so crazy :)
    {
        CGRect alertFrame = CGRectMake(250.0, 400.0, 650.0, 150.0);
        alertView.frame = alertFrame;
    }
}
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
sny
  • 1
  • 1

1 Answers1

0

UIAlertView doesn't support custom width setting.

Here is a UIAlertView-replacement class that does support custom width:

https://github.com/TomSwift/TSAlertView

TomSwift
  • 39,369
  • 12
  • 121
  • 149