问题:每次运行模拟器进入(登录页面->我的页面->注销)没有问题,但是注销后回到登录页面,再点击登录就没有反应了。
AppDelegate:
LoginViewController *loginViewController = [[LoginViewController alloc]init];
if ([loginViewController isKindOfClass:[LoginViewController class]]) {
_navigationController = [[UINavigationController alloc] initWithRootViewController:loginViewController];
}
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
self.window.backgroundColor = [UIColor whiteColor];
self.window.rootViewController = _navigationController;
[self.window makeKeyAndVisible];
我的页面中的注销:
LoginViewController *logView = [[LoginViewController alloc]init];
AppDelegate *myDelegate = [[UIApplication sharedApplication] delegate];
myDelegate.window.rootViewController = logView;
点击按钮进入PreGWController 再登录:
代码点击后没反应:
if (_pregw==nil) {