#pragma mark AlertView delegate
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{
    NSUserDefaults *userdefault=[NSUserDefaults standardUserDefaults];
    switch (buttonIndex) {
        case 0:
            UIWebView *webview = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, 1024,768)];
            NSString * URLString =@"http://www.google.com";
            NSURL *URL = [NSURL URLWithString: URLString];
            NSURLRequest *request=[NSURLRequest requestWithURL:URL];
            [webview loadRequest:request]; // Use of undeclared identifier webview
            [self.view addSubview:webview]; // Use of undeclared identifier webview
            break;
        case 1:
            //if Yes button pressed on logout alert
            [self notificationAction];
            [userdefault removeObjectForKey:@"Login"];
            [userdefault synchronize];
            break;
        default:
            break;
    }
}
This is the code I am using to display a webpage. However in Xcode I get the following error on the 1st line of 1st case:
Expected Expression
Am I missing a header file that I'm suppose to import or am I doing something wrong?
 
     
    