2009-08-09 18 views
0

ウェブサービスにユーザー名/パスワードを送信し、true(これはアプリケーションの残りの部分を開始するはずです)またはfalse(不正なユーザー名/パスワードまたは無許可)の応答を返します。あなたは認証されているが、ビューの残りの部分はロードされていないというアラートビューが表示されますか?残りのiPhoneアプリが読み込まれないのはなぜですか?

if ([soapResults isEqualToString: @"true"]) 
    { 
     UIAlertView *welcome = [[UIAlertView alloc] initWithTitle:@"Welcome!" message:@"Welcome, You are now authenticated to a Coyote Logistics application." delegate:self cancelButtonTitle:@"OK",nil otherButtonTitles:nil]; 
     [welcome show]; 
     [welcome release]; 
     [soapResults release]; 
     soapResults = nil; 
     [loginIndicator stopAnimating]; 
     loginIndicator.hidden = TRUE; 
     loggedinLabel.text = usernameField.text; 
     loggedinLabel.textColor = [UIColor blackColor]; 
     NSLog(@"Valid Login"); 
     FeedsViewController *fvController = [[FeedsViewController alloc] initWithTitle:@"LoadBoard" withNavigationTitle:@"Available Loads" withPropertyFile:@"feeds.plist"]; 
     AboutViewController *avController = [[AboutViewController alloc] init]; 
     SettingsViewController *svController = [[SettingsViewController alloc] init]; 
     UINavigationController *fvNavController = [[UINavigationController alloc] initWithRootViewController:fvController]; 
     UINavigationController *avNavController = [[UINavigationController alloc] initWithRootViewController:avController]; 
     UINavigationController *svNavController = [[UINavigationController alloc] initWithRootViewController:svController]; 
     UITabBarController *tbController = [[UITabBarController alloc] init]; 

     fvNavController.navigationBar.tintColor = [UIColor colorWithRed:0.14 green:0.18 blue:0.25 alpha:1.00]; 
     avNavController.navigationBar.tintColor = [UIColor colorWithRed:0.14 green:0.18 blue:0.25 alpha:1.00]; 
     svNavController.navigationBar.tintColor = [UIColor colorWithRed:0.14 green:0.18 blue:0.25 alpha:1.00]; 


     [[fvController tabBarItem] setImage:[UIImage imageNamed:@"rss.png"]]; 

     tbController.viewControllers = [NSArray arrayWithObjects:fvNavController, avNavController, svNavController, nil]; 

     // Configure and show the window 
     [window addSubview:tbController.view]; 
     [window makeKeyAndVisible]; 
     [LoginViewController release]; 
    } 

あなたがUIAlertViewの上映を無効にするとどうなり

答えて

1

を私を助けてください?正しくロードされていれば、UIAlertViewの表示を、最初に表示されているviewcontrollerのviewdidloadメソッドに移動することを検討してください。

関連する問題