uiimagepickercontroller
How to select any Video or Movie file from UIImagePickerController
Picking videos from the iPhone Library does not work on the iOS Simulator. Try it on a real iPhone. Here is the code for picking video from the iOS Photo Library which I have used in my projects. Just add video method from selector to your desired button. – (void)video { UIImagePickerController *imagePicker = [[UIImagePickerController … Read more
Resizing UIimages pulled from the Camera also ROTATES the UIimage?
The reason your code doesn’t work is because the imageOrientation on the code that you have is not being taken into account. Specifically, if the imageOrientation is right/left, then you need to both rotate the image and swap width/height. Here is some code to do this: -(UIImage*)imageByScalingToSize:(CGSize)targetSize { UIImage* sourceImage = self; CGFloat targetWidth = … Read more
iOS 8 SDK: modal UIWebView and camera/image picker
I found that in iOS 8.0.2 iPad does not seem to have that bug but iPhone still does. However, overriding following in the view controller containing the uiwebview -(void)dismissViewControllerAnimated:(BOOL)flag completion:(void (^)(void))completion And checking that there is a presentedViewController seems to work. But need to check side effects #import “UiWebViewVC.h” @interface UiWebViewVC () @property (weak, nonatomic) … Read more
iPhone, “More than maximum 5 filtered album lists trying to register. This will fail.” Error
I think you are not checking the source type. You might be doing self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary; If this is the case, then you have to check the source type before assigning it directly. like if ([UIImagePickerController isSourceTypeAvailable: UIImagePickerControllerSourceTypePhotoLibrary]) { // Set source to the Photo Library self.sourceType =UIImagePickerControllerSourceTypePhotoLibrary; } I hope it helps
UIImagePickerController – How do I access the front facing camera by default?
UIImagePickerControllerCameraDeviceFront is not a valid enum for the sourceType property. The sourceType property defines whether you’re using the camera or the photo library. You need to set the cameraDevice property instead. Objective-C self.imgPicker.sourceType = UIImagePickerControllerSourceTypeCamera; self.imgPicker.cameraDevice = UIImagePickerControllerCameraDeviceFront; Swift 2 imgPicker.sourceType = .Camera imgPicker.cameraDevice = .Front Swift 3 imgPicker.sourceType = .camera imgPicker.cameraDevice = .front
how to capture camera with UIImagePickerController in swift?
You should also import MobileCoreServices in the controller: import MobileCoreServices and then put the type inside square brackets like this: image.mediaTypes = [kUTTypeImage] Swift 2.0 and Higher image.mediaTypes = [kUTTypeImage as String]
UIImagePickerController camera view rotating strangely on iOS 8 (pictures)
I believe it is an iOS 8 bug. For example if you open your contacts app and click edit/add photo/take photo, the same issue occurs on a standard iOS app! Post the issue to Apple support just as I have.