Blocks are Apple’s implementation of closures for C, which are also available for Objective-C and C++.
I'd like to store objective-c block in a property for later use. I wasn't sure how to do it so …
objective-c objective-c-blocksI often want to execute some code a few microseconds in the future. Right now, I solve it like this: …
iphone objective-c cocoa-touch ios objective-c-blocksI read a lot of posts about using __weak self inside dispatch_async, and now I am a litle bit …
ios objective-c-blocks weak-references retain-cycleI looked around, but couldn't find this on the internet, nor anywhere in the Apple docs, so I'm guessing it …
iphone uibutton objective-c-blocksIn My dispach_async code block I cannot access global variables. I am getting this error Variable is not Assignable (…
ios objective-c multithreading objective-c-blocks grand-central-dispatchI need to know when reloading a UICollectionView has completed in order to configure cells afterwards (because I am not …
objective-c-blocks uicollectionview uicollectionviewcell completionhandlerGiven the following: - (void) someMethod { dispatch_async(dispatch_get_main_queue(), ^{ myTimer = [NSTimer scheduledTimerWithTimeInterval: 60 target: self selector: @selector(doSomething) …
objective-c macos objective-c-blocksIm trying to understand completion handlers & blocks. I believe you can use blocks for many deep programming things without …
ios objective-c-blocks completionhandlerI ran into a scenario where I had a delegate callback which could occur on either the main thread or …
objective-c multithreading objective-c-blocks grand-central-dispatchIn C/Obj-C, we do a typedef like this typedef int MYINT; which is clear. Doing typedef for a block …
objective-c objective-c-blocks typedef