In my application, I added 1 UICollectionview and use UIImagePickerController to take a picture and then upload it to the server, collectionview used to display all the photos. But when I click the "Camera" button in my application to open the "Camera", I got a warning Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. in the console log. Once the camera screen has a black screen. I tried to search, but I can not solve this problem. Could you help me solve this problem? Thanks in advance.
source share