Created
January 27, 2015 09:46
-
-
Save OdNairy/fb098ee361aaf02bbbef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
NSObject* ob = [NSObject new]; | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
NSLog(@"A: %d",[ob retainCount]); | |
dispatch_async(dispatch_get_main_queue(), ^{ | |
NSLog(@"B: %d",[ob retainCount]); | |
}); | |
NSLog(@"C: %d",[ob retainCount]); | |
}); | |
NSLog(@"D: %d",[ob retainCount]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment