I've decided it would just be easier for my UIalertview to not rotate.. i want the UIalertview to stay in portrait mode and then after the password is entered for the webview to rotate. here is my code..i'm new at this..lol help would be great
- (void)viewDidLoad{
UIAlertView *prompt = [[UIAlertView alloc] initWithTitle:@"Password"
message:@"n/n/n/" // IMPORTANT
delegate:self
cancelButtonTitle:nil
otherButtonTitles:@"Enter", nil];
textField2 = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
[textField2 setBackgroundColor:[UIColor whiteColor]];
[textField2 setPlaceholder:@"password"];
[textField2 setSecureTextEntry:YES];
[prompt addSubview:textField2];
// set place
[prompt setTransform:CGAffineTransformMakeTranslation(0.0, 95.0)];
[prompt show];
[prompt release];
// set cursor and show keyboard
[super viewDidLoad];
webView.scalesPageToFit=YES;
webView.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
NSString *pdfPath = [[NSBundle mainBundle] pathForResource:@"2009EVFalcon" ofType:@"pdf"];
/*
If we have to take from its operational directory, then the next 4 lines will be used...
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDire ctory, NSUserDomainMask, YES);
NSString *saveDirectory = [paths objectAtIndex:0];
NSString *saveFileName = @"myPDF.pdf";
NSString *pdfPath = [saveDirectory stringByAppendingPathComponent:saveFileName];
*/
self.pdfUrl = [NSURL fileURLWithPath

dfPath];
[webView loadRequest:[NSURLRequest requestWithURL

dfUrl]];
}