From 56ae98114db624dc748cc74d706e14181b22e55d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 23 Nov 2017 01:10:40 +0300 Subject: drop some pods --- Juick/Model/User.m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'Juick/Model/User.m') diff --git a/Juick/Model/User.m b/Juick/Model/User.m index 3f860d7..38e4269 100644 --- a/Juick/Model/User.m +++ b/Juick/Model/User.m @@ -8,6 +8,8 @@ #import "User.h" +@import PDKeychainBindingsController; +#import "APIClient.h" @implementation User @@ -15,12 +17,12 @@ return [[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"] != nil; } -+(void) throwUnableToLogin { - SIAlertView *alert = [[SIAlertView alloc] initWithTitle:@"Error" andMessage:@"Unable to login, check username/password, or network connectivity"]; - [alert addButtonWithTitle:@"OK" type:SIAlertViewButtonTypeCancel handler:^(SIAlertView *alertView) { - // <#code#> - }]; - [alert show]; ++(void) throwUnableToLogin:(UIViewController *)view { + UIAlertController *alert = [UIAlertController new]; + [alert setTitle:@"Error"]; + [alert setMessage:@"Unable to login, check username/password, or network connectivity"]; + [alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil]]; + [view presentViewController:alert animated:YES completion:nil]; } +(void) checkIsValid:(void (^)(BOOL))callback { -- cgit v1.2.3