Skip to content

Instantly share code, notes, and snippets.

@OdNairy
Created January 27, 2015 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OdNairy/fb098ee361aaf02bbbef to your computer and use it in GitHub Desktop.
Save OdNairy/fb098ee361aaf02bbbef to your computer and use it in GitHub Desktop.
- (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