I want to know how to call my function
on the main thread.
How do I make sure my function
is called on the main thread?
(this follows a previous question of mine).
This will do it:
[[NSOperationQueue mainQueue] addOperationWithBlock:^ {
//Your code goes in here
NSLog(@"Main Thread Code");
}];
Hope this helps!