iOS 4: FigCreateCGImageFromJPEG returned -1

前端 未结 1 378
别跟我提以往
别跟我提以往 2021-01-26 16:27

I\'m trying to get a basic image picker/photo taker running in my app and have run into the following error:

 *** ERROR: FigCreateCGImageFromJPEG returned -1. In         


        
1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-26 16:40

    I have managed to stop my application crashing but the error persist.

    Instead of assigning the UIImage from the NSDictionary *info straight to my UIImageView I retain it in a UIImage variable then dismiss the ModalViewcontroller.

    In the viewWillAppear method of the root UIViewController I then assign the image to my UIImageView.image.

    I don't know if the order I was doing things was the root cause. The error still appears in the console however.

    0 讨论(0)
提交回复
热议问题