objective c - UIImageView not displaying image - iPhone SDK -
I am using AVFRMMwork to capture camera frames and I would like to process and display them in UIImageView, but there is some problem. I have a code:
However, it will not be displayed. The correct size is shown in NSLog
, and when I enter:
In the viewDidLoad, an image is displayed correctly (so I know that UIImageView is correctly added).
Should not any work? I'm at a loss right now.
Cheers, Brett
What are you doing on this main thread? You can either use the main queue for the representative (undesirable, because you are already processing) or:
dispatch_async (dispatch_get_main_queue (), ^ {imageView.image = .. ;;});