Skip to content

Conflicts with UIImagePickerController on iOs7 #8

@superandrew

Description

@superandrew

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:

  1. instead of using myQueue

    dispatch_queue_t myQueue = dispatch_queue_create("com.gazapps.myqueue", 0);

I am using

dispatch_async(dispatch_get_main_queue(), ^{...
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions