Permalink
Browse files

Convert to ARC

  • Loading branch information...
1 parent 63c2ac7 commit 6fa095419f11e0ebcbc959fa5dab23fa5c2c60ed @hpique hpique committed Aug 31, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 Appirater.h
  2. +3 −3 Appirater.m
View
2 Appirater.h
@@ -138,7 +138,7 @@ extern NSString *const kAppiraterReminderRequestDate;
UIAlertView *ratingAlert;
}
-@property(nonatomic, retain) UIAlertView *ratingAlert;
+@property(nonatomic, strong) UIAlertView *ratingAlert;
/*
Tells Appirater that the app has launched, and on devices that do NOT
View
6 Appirater.m
@@ -88,7 +88,7 @@ - (BOOL)connectedToNetwork {
NSURL *testURL = [NSURL URLWithString:@"http://www.apple.com/"];
NSURLRequest *testRequest = [NSURLRequest requestWithURL:testURL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:20.0];
- NSURLConnection *testConnection = [[[NSURLConnection alloc] initWithRequest:testRequest delegate:self] autorelease];
+ NSURLConnection *testConnection = [[NSURLConnection alloc] initWithRequest:testRequest delegate:self];
return ((isReachable && !needsConnection) || nonWiFi) ? (testConnection ? YES : NO) : NO;
}
@@ -109,11 +109,11 @@ + (Appirater*)sharedInstance {
}
- (void)showRatingAlert {
- UIAlertView *alertView = [[[UIAlertView alloc] initWithTitle:APPIRATER_MESSAGE_TITLE
+ UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:APPIRATER_MESSAGE_TITLE
message:APPIRATER_MESSAGE
delegate:self
cancelButtonTitle:APPIRATER_CANCEL_BUTTON
- otherButtonTitles:APPIRATER_RATE_BUTTON, APPIRATER_RATE_LATER, nil] autorelease];
+ otherButtonTitles:APPIRATER_RATE_BUTTON, APPIRATER_RATE_LATER, nil];
self.ratingAlert = alertView;
[alertView show];
}

0 comments on commit 6fa0954

Please sign in to comment.