-1
當我打電話裏面uialertviewcontroller方法,我得到了以下問題http://joxi.ru/DrlOO41i4WBNMA如何解僱AlertViewController
如果外界能正常工作。
任何想法 - 將不勝感激。
[[WashappService sharedInstance] auth:^(BOOL value) {
if(value==TRUE){
[self presentViewController:[LoginController authConfirmScreen:self toUser:user toPhone:szPhone success:^{
[(MenuClientController*)self.menuContainerViewController.leftMenuViewController updateData];
User* user = [User new];
user = [UserPreference get:KEY_CLIENT];
user.typeOwner = self.isWashAdmin;
[UserPreference save:KEY_CLIENT toValue:user];
[[WashappService sharedInstance] updateToken:user.token];
self.nStatusLogin = 1;
if (self.isWashAdmin){
OOrdersViewController *vMain = [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] instantiateViewControllerWithIdentifier:@"OOrdersViewController"];
[self.navigationController pushViewController:vMain animated:YES];
}else{
CMainViewController *vMain = [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] instantiateViewControllerWithIdentifier:@"CMainView"];
[self.navigationController pushViewController:vMain animated:YES];
}
}] animated:YES completion:nil];
} else {
[TSMessage showNotificationWithTitle:NSLocalizedString(@"Error", @"Ошибка")
subtitle:NSLocalizedString(@"Login failed", @"Не удалось авторизоваться")
type:TSMessageNotificationTypeError];
}
} toPhone:szPhone toOwnerType:self.isWashAdmin];
的警報控制器? –
後面的代碼 –