i was able to get the error messages to go away by adding the end bracket before -(void) i've goofed around with it with no luck..by changing alertView to prompt I get a blank white screen after i enter. I have no clue as to how to make this work..i keep getting the same thing i had before a password box that dosent' work, here is the code i have..
- (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, 85.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, 110.0)];
[prompt show];
[prompt release];
// set cursor and show keyboard
[textField2 becomeFirstResponder];
}
- (void)prompt

UIAlertView *)prompt clickedButtonAtIndex

NSInteger)buttonIndex {
if ([textField2.text isEqualToString: @"MyPassword"]) {
// Do something on good password
} else{
}
[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]];
}
- (void)dealloc
{
[webView release];
[pdfUrl release];
[super dealloc];
}
@end