Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Added guard to unsupported features of iOS 8 extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Serge Hänni committed Mar 11, 2015
1 parent 4d635e3 commit 476a171
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions UIKit+AFNetworking/AFNetworkActivityIndicatorManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ - (BOOL)isNetworkActivityIndicatorVisible {
}

- (void)updateNetworkActivityIndicatorVisibility {
#if !defined(AF_APP_EXTENSIONS)
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:[self isNetworkActivityIndicatorVisible]];
#endif
}

- (void)setActivityCount:(NSInteger)activityCount {
Expand Down
2 changes: 1 addition & 1 deletion UIKit+AFNetworking/UIAlertView+AFNetworking.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#import <Availability.h>

#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS)

#import <UIKit/UIKit.h>

Expand Down
2 changes: 1 addition & 1 deletion UIKit+AFNetworking/UIAlertView+AFNetworking.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#import "UIAlertView+AFNetworking.h"

#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
#if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && !defined(AF_APP_EXTENSIONS)

#import "AFURLConnectionOperation.h"

Expand Down

0 comments on commit 476a171

Please sign in to comment.