Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Converted to ARC

  • Loading branch information...
commit 1e59851c4435eced58e8228539d2d29ea5af537f 1 parent 1892cda
@lucascorrea authored
View
2  SCTwitter/SCTwitter/SCTwitter.h
@@ -25,7 +25,7 @@
#import <Foundation/Foundation.h>
-#define Alert(title,msg) [[[[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil] autorelease] show];
+#define SCAlert(title,msg) [[[UIAlertView alloc] initWithTitle:title message:msg delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil] show];
#define kTwitterData @"twitterData"
View
5 SCTwitter/SCTwitter/SCTwitter.m
@@ -174,11 +174,10 @@ - (void)loginViewControler:(UIViewController *)aViewController callback:(void (^
if (!_engine.consumerKey || !_engine.consumerSecret) {
NSString *error = @"Missing your application credentials ConsumerKey and ConsumerSecret. You cannot run the app until you provide this in the code.";
- Alert(@"ERROR", error);
+ SCAlert(@"ERROR", error);
if (aCallback) {
aCallback(NO);
- [aCallback release];
}
return;
}else {
@@ -193,7 +192,7 @@ - (void)loginViewControler:(UIViewController *)aViewController callback:(void (^
// Autorize twitter
self.loginCallback = aCallback;
UIViewController *twitterController = [SA_OAuthTwitterController controllerToEnterCredentialsWithTwitterEngine:_engine delegate:self];
- [aViewController presentModalViewController:twitterController animated: YES];
+ [aViewController presentViewController:twitterController animated:YES completion:nil];
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.