I\'m trying to implement a feature in my app that will record the screen. I have bits of code that I have found in some sample code and a WWDC 2012 video.
So far I
I solved the problem by using CGDisplayStreamCreateWithDispatchQueue and passing dispatch_queue_create("queue for dispatch", NULL); as the queue.
CGDisplayStreamCreateWithDispatchQueue
dispatch_queue_create("queue for dispatch", NULL);