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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)