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

can't compile for Target version 6.0 #1

Closed
viking2009 opened this issue Oct 4, 2013 · 1 comment
Closed

can't compile for Target version 6.0 #1

viking2009 opened this issue Oct 4, 2013 · 1 comment

Comments

@viking2009
Copy link

fix:

  • (void)startLogging {
    [self stopLogging];

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingOperationDidStartNotification object:nil];
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingOperationDidFinishNotification object:nil];

if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidStart:) name:AFNetworkingTaskDidStartNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(networkRequestDidFinish:) name:AFNetworkingTaskDidFinishNotification object:nil];

endif

}

@mattt
Copy link
Contributor

mattt commented Nov 18, 2013

Fixed by ac43d32.

@mattt mattt closed this as completed Nov 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants