-1
을 해제하는 방법, I는 다음 문제를 http://joxi.ru/DrlOO41i4WBNMA내가 uialertviewcontroller 내부 메서드를 호출 할 때 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];
경고 컨트롤러? –
아래 게시물의 코드 –