if (!self.userInfo) { [self showLogin:NO]; }else{ [self loadUserInfo];//获取用户信息 } [self.window makeKeyAndVisible];