uiimagepickercontroller

UIImagePickerController with Photo Library with fixed size photos

半腔热情 提交于 2019-12-12 01:39:38
问题 i've got some code: pV = [[UIImagePickerController alloc] init]; pV.delegate = self; pV.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; [self presentModalViewController:pV animated:YES]; and i try to display only these images from Photo Library which dimension is X and Y. any ideas? 回答1: you need to implement your own image picker and filter the ALAssets by their properties 来源: https://stackoverflow.com/questions/11635577/uiimagepickercontroller-with-photo-library-with-fixed-size

UIImagePickerController EXC_BAD_ACCESS Error

烂漫一生 提交于 2019-12-12 00:28:38
问题 I set up my app to run like this: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame: [[UIScreen mainScreen] bounds]]; UIImagePickerController* picker = [[UIImagePickerController alloc] init]; self.viewController = picker; self.window.rootViewController = self.viewController; [self.window makeKeyAndVisible]; return YES; } After Image picker appears, I choose, for example, "Camera Roll".

How to show another view after a UIImagePickerController

懵懂的女人 提交于 2019-12-11 23:52:06
问题 I've a tabbar with a button, you click it and you see an UIImagePickerController. After the user choose the image I want another view. How can I do it? I've this: - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage : (UIImage *)image editingInfo:(NSDictionary *)editingInfo { imageToPost.image = image; [picker dismissModalViewControllerAnimated:YES]; PostPopupViewController *postPopup = [[PostPopupViewController alloc] init]; [self presentModalViewController

Supported orientations Crash iOS7

我怕爱的太早我们不能终老 提交于 2019-12-11 22:13:55
问题 I have portrait only app which do video capturing and some other tasks! everything is working fine, I want to keep app in portrait, but Camera view in landscape only. I have rotated single view test in portrait app by using UIInterfaceOrientationMask but Rotating Camera view caused the Following Crash: Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES' for further info I m using following line to insert show camera. I insert camera

Hide record button in UIImagePickerController

你说的曾经没有我的故事 提交于 2019-12-11 20:24:23
问题 I have a question on UIImagePickerController. May I use UIImagePickerController as a preview? If I do like that, I have to hide record button, is there any way to do it? or Any other approach to show our preview other than UIImagePickerController. thanks for your helps... 回答1: You can hide the controls of a UIImagePickerController by using: [myImagePickerController setShowsCameraControls:NO]; EDIT: Check out this code, it hides all the controls inside the image picker allowing you to create

UIImagePickerController status bar issue in crop

本小妞迷上赌 提交于 2019-12-11 20:16:18
问题 I'm using UIViewControllerBasedStatusBarAppearance and preferredStatusBarStyle to manage the status bar color and appearance. My app lets the user choose a photo from his camera roll and crop it to square using the native crop option of UIImagePickerController . So I push a UIImagePickerController and enable editing to get the crop screen. The problem is, I want that for the albums and photos view, the status bar will be white, and for the crop view I want to hide the status bar. how can I do

Wired behaviour of UIImagePickerController while capturing photo

人盡茶涼 提交于 2019-12-11 18:59:06
问题 My entire app is in portrait orientation, only camera view should open in landscape orientation. I've taking reference of Apple's sample code of UIImagePickerController , https://developer.apple.com/library/ios/samplecode/PhotoPicker/PhotoPicker.zip In my requirement, I've to force UIImagePickerController to start camera in landscape mode, and need to capture the photos. I'm aware of this, The UIImagePickerController class supports portrait mode only. This class is intended to be used as-is

iOS - Taking A Picture After Button Tap in UIImagePickerController CustomOverlayView

本小妞迷上赌 提交于 2019-12-11 18:49:22
问题 I have searched similar questions for answers, but nothing I have tried has worked. When I tap on either button in my overlay view, the camera only focuses - no action is triggered. Here is my code: Update: The previous question was answered - the code was fine, I just wasn't alerting myself in the testIfButtonResponds method. Now I am wondering how to dismiss the camera and show the captured picture in a UIImageView. Also, the UIImageView *DisplayedPhoto was made in IB, so it has a frame.

open gallery with videos AND photos in iOS

冷暖自知 提交于 2019-12-11 18:19:08
问题 I was using the UIImagePickerViewController, and i wanted to open the camera roll. But, in my app, i have a button to open my camera roll and another one to open my camera. When i take a picture or record a video, obviously i wanted to see those images in my camera roll. But, in my app, when i start to record a video, he doesn't show up in my camera roll's app. Here's a little bit of code: UIImagePickerController *cameraRoll = [[UIImagePickerController alloc] init]; [cameraRoll setSourceType

UIButton is not responding when added to a UIImageView

情到浓时终转凉″ 提交于 2019-12-11 18:07:02
问题 I'm trying to add a button to a UIImageView with a transparent background - the button is shown ok but is not responding. (takePictureClicked is not called) My code: cameraController = [[UIImagePickerController alloc] init]; cameraController.sourceType = UIImagePickerControllerSourceTypeCamera; cameraController.delegate = self; cameraController.allowsEditing=YES; cameraController.showsCameraControls = NO; cameraController.navigationBarHidden = YES; cameraController.toolbarHidden = YES; //