我想创建一个登录页面,该页面将获取用户的登录详细信息并将他重定向到主页。我不知道我该怎么做。请帮助我。
if([username isEqualToString:@"aa"] && [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 & password doesnot match" delegate:nil cancelButtonTitle:@"ok" otherButtonTitles:nil, nil];
[alert show];
[alert show];
}