开发者

Problem in camera activities in ios4

开发者 https://www.devze.com 2023-03-07 21:55 出处:网络
hi开发者_C百科 so far i have usedUIImagePickerControllerfor camera activities in IOS3. But in IOS4 theImagePickerController isnot working properly. When i tried to captureimage it shows either awhite

hi开发者_C百科 so far i have used UIImagePickerController for camera activities in IOS3. But in IOS4 the ImagePickerController is not working properly. When i tried to capture image it shows either a white image or else the app gets crashed often.

So i started using the AVCapture device for my camera activities. In this too i started facing new problems. When i capture the image in landscape the image preview shows the image to be portrait and vice versa. And some times it shows memory level warning.

Both the UIImagePickerController and the AVCapture are making problems. I want to know how to solve these problems. Else is there any other way to handle camera activities in IOS4.

Please help me friends.....


If you just want to enable the user to take photos, UIImagePickerController is the way to go. AVFoundation is quite low level and requires you to handle a lot of things yourself (e.g. compensating for the device orientation).

I've used UIImagePickerController extensively on iOS 4 and it works just fine for me. I suspect the white image/crashing problems are due to something else in your code. If you post a few code snippets we can try to figure out what's going on.

0

精彩评论

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

关注公众号