summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Juick/User.m6
-rw-r--r--Podfile1
-rw-r--r--Podfile.lock3
3 files changed, 9 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];
}
diff --git a/Podfile b/Podfile
index 2d5f0f1..5a03bd9 100644
--- a/Podfile
+++ b/Podfile
@@ -13,6 +13,7 @@ pod 'FontAwesome+iOS'
pod 'NSDate+TimeAgo'
pod 'JVFloatLabeledTextField'
pod 'SVPullToRefresh'
+pod 'SIAlertView'
end
target "JuickTests" do
diff --git a/Podfile.lock b/Podfile.lock
index 8237113..1bed23c 100644
--- a/Podfile.lock
+++ b/Podfile.lock
@@ -38,6 +38,7 @@ PODS:
- SDWebImage (3.5.1):
- SDWebImage/Core
- SDWebImage/Core (3.5.1)
+ - SIAlertView (1.3)
- SOCKit (1.1)
- SVPullToRefresh (0.4.1)
- SWRevealViewController (1.0.8)
@@ -53,6 +54,7 @@ DEPENDENCIES:
- PDKeychainBindingsController
- RestKit
- SDWebImage
+ - SIAlertView
- SVPullToRefresh
- SWRevealViewController
- TTTAttributedLabel
@@ -69,6 +71,7 @@ SPEC CHECKSUMS:
RestKit: c11a30e7bc73513d9d2c2695672aba7697d24181
RKValueTransformers: 1562d458b9c9d59ce777bfc5982f2e1aef2e9182
SDWebImage: a408b548a634b792372e07e753fc1079aff5032a
+ SIAlertView: e6d0d786c3a3f6e456b0e8b9376d0c34d68e827b
SOCKit: 2f3bc4d07910de12dcc202815e07db68a3802581
SVPullToRefresh: 61a0e4bd12bd6f8e3465909810b0fbeb1a28d5f2
SWRevealViewController: 5688d9d017e228c9edd92db359f670d8c47ab8e6