Bläddra i källkod

Fixed spacing in dealloc methods.

Brian Nickel 10 år sedan
förälder
incheckning
1accc9869e

+ 2 - 2
UIKit+AFNetworking/UIActivityIndicatorView+AFNetworking.m

@@ -153,9 +153,9 @@
 
 #pragma mark -
 
--(void)dealloc
-{
+- (void)dealloc {
     NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
+    
 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
     [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];
     [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];

+ 2 - 2
UIKit+AFNetworking/UIRefreshControl+AFNetworking.m

@@ -148,9 +148,9 @@
 
 #pragma mark -
 
--(void)dealloc
-{
+- (void)dealloc {
     NSNotificationCenter *notificationCenter = [NSNotificationCenter defaultCenter];
+    
 #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
     [notificationCenter removeObserver:self name:AFNetworkingTaskDidCompleteNotification object:nil];
     [notificationCenter removeObserver:self name:AFNetworkingTaskDidResumeNotification object:nil];