开发者

iPhone iOS 4.0 Camera FigCreateCGImageFromJPEG returned -1

Since I updated to 4.0, when I take a photo with my App using UIImagePickerController I get the following error output:

**开发者_开发百科* ERROR: FigCreateCGImageFromJPEG returned -1. Input (null) was 711733 bytes.

I still get the image returned and can continue as normal, but does any body know what and why I get this error. I also get the following warnings that could be related:

Using two-stage rotation animation. To use the smoother single-stage animation, this >application must remove two-stage method implementations.

Using two-stage rotation animation is not supported when rotating more than one view >controller or view controllers not the window delegate

Any information would be of great help. Thanks in advance.


I also have problems with UIImagePickerController on iOS 4.0, It works on simulator on 3.0 but on 4.0 i have a crash the delegate method - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info is called twice, and if i build on the phone and use camera it works ok.

Edit:

I have solved this problem long time ago by adding a global static int and when i enter the delegate method I test for that static int the I increment the value of it. And in the way the delegate is executed only once.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜