Open superandrew opened 10 years ago
When I instantiate the popover and after that I load a UIImagePickerController, the camera looks black for about 30 seconds or more.
I've made some changes on code (method loadColorButtons )which makes it work:
instead of using myQueue
dispatch_queue_t myQueue = dispatch_queue_create("com.gazapps.myqueue", 0);
I am using
dispatch_async(dispatch_get_main_queue(), ^{...
In the same method, in the loop, instead of starting another queue, I replaced with this:
//dispatch_sync(dispatch_get_main_queue(), ^{ [self.buttonCollection addObject:colorButton]; [scroll addSubview:colorButton]; //});//end block
It works just fine.
When I instantiate the popover and after that I load a UIImagePickerController, the camera looks black for about 30 seconds or more.
I've made some changes on code (method loadColorButtons )which makes it work:
instead of using myQueue
dispatch_queue_t myQueue = dispatch_queue_create("com.gazapps.myqueue", 0);
I am using
In the same method, in the loop, instead of starting another queue, I replaced with this:
//dispatch_sync(dispatch_get_main_queue(), ^{ [self.buttonCollection addObject:colorButton]; [scroll addSubview:colorButton]; //});//end block
It works just fine.