From 26cee3f257e7c42f33b84214e36dd13327a30600 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 3 Feb 2014 16:56:33 +0400 Subject: UIAlertView -> SIAlertView --- Juick/User.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Juick/User.m') diff --git a/Juick/User.m b/Juick/User.m index e1bef3a..97f4232 100644 --- a/Juick/User.m +++ b/Juick/User.m @@ -8,6 +8,7 @@ #import "User.h" #import "PDKeychainBindings.h" +#import "SIAlertView.h" @implementation User @@ -16,7 +17,10 @@ } +(void) throwUnableToLogin { - UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Unable to login, check username/password, or network connectivity" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil]; + 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]; } -- cgit v1.2.3