I want to load a webpage on login page .I've created a log-in page with a static ID and password.
<p>I want to create a <em>login page</em> that will take login details of user and redirect him to the main page. i dont know how can i do that . plz help me. </p>

<pre><code> if([username isEqualToString:@"aa"] &amp;&amp; [password isEqualToString:@"aa"])
    {
        Supportingwv *swv = [[Supportingwv alloc]initWithNibName:@"supportingwv"bundle:nil];
        NSString *urlstring = @"www.google.com";
        [ swv setUrlString : urlstring];
        [self.view addSubview:swv.view];
    }
    else
    {        
        UIAlertView * alert = [[UIAlertView alloc]initWithTitle:@"invalid authentication" message:@"username &amp; password doesnot match" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
        [alert show];
        [alert show];
    }
</code></pre>
