我有一个登录屏幕,用于检查插入的密码是否正确。
之后,我想从登录屏幕切换到UITabBarController
.
LoginViewController.m 中的代码:
-(IBAction)LoginButton:(id)sender {
[PassWortEingabe resignFirstResponder];
NSString *pnssPasswortEingabe = [NSString stringWithFormat:@"%@",PassWortEingabe.text];
NSString *pnssPasswortString = [NSString stringWithFormat:@"%s","Hallo"];
if( [pnssPasswortEingabe isEqualToString: pnssPasswortString ]){
DebugTextView.text = @"Login succesfull";
//PassWortEingabe = 0;
//[PassWortEingabe resignFirstResponder];
}else{
DebugTextView.text = @"Login unsuccesfull";
//PassWortEingabe = 0;
//[PassWortEingabe resignFirstResponder];
}
}
我想跳转到UITabBarController
登录成功时...