summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2014-02-03 16:56:33 +0400
committerGravatar Vitaly Takmazov2014-02-03 16:56:33 +0400
commit26cee3f257e7c42f33b84214e36dd13327a30600 (patch)
treeb7d87dbc03b189c4acea5b8eedf390512641b4cc /Juick
parent57c8c45a4730fe7c980b8b7eadf94ca60b97db43 (diff)
UIAlertView -> SIAlertView
Diffstat (limited to 'Juick')
-rw-r--r--Juick/User.m6
1 files changed, 5 insertions, 1 deletions
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];
}