PDA

View Full Version : web browser loading string incorrectely




Programmer
Jul 9, 2009, 10:04 PM
i'm making a web browser but when i run this code

- (BOOL)textFieldShouldReturnUITextField *)textField
{
NSString *searchURL = [NSString stringWithFormat:@"http://", [urlField stringValue], NSString stringWithFormat:@".com"];
[textField resignFirstResponder];
[myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:[textField text]]]];


return YES;
}

i get this

Expected expression before NSString

can anyone help



kainjow
Jul 10, 2009, 12:30 PM
You already posted this here:
http://forums.macrumors.com/showpost.php?p=8054140&postcount=8