1,在MainWindow.xib里放入LoginViewController和 UITabBarController 。 2,Delegate里application加入下记代码。 复制代码 [window addSubview:tabBarController]; [window addSubview:loginViewController]; 3,Login成功后,在LoginViewController里加入下记代码。 复制代码 [self.view removeFromSuperview];