Last active
December 14, 2015 23:39
-
-
Save jpohhh/5167390 to your computer and use it in GitHub Desktop.
testing Xcode 4.6.1 and blocks + lldb
This file contains hidden or 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
UIViewController *controller = [[UIViewController alloc] init]; | |
[controller loadView]; | |
double delayInSeconds = 2.0; | |
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); | |
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ | |
NSLog(@"Statement so block captures controller: %@", controller); | |
NSLog(@"Need set breakpoint here. Testing by typing po [controller view] into debugger"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment