我有一個登錄屏幕,用於檢查插入的密碼是否正確。從登錄屏幕到`UITabBarController`
之後,我想從登錄屏幕切換到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
當登錄SUCESSFUL ...
爲什麼不直接在故事板中使用segue? – Dejell 2013-02-20 19:54:01
@Odelya毫無理由。我只是喜歡用代碼來完成。 – Popeye 2013-02-20 20:29:10