uiimagepickercontroller

Change case of UIImagePickerController navigation bar items

二次信任 提交于 2019-12-12 04:34:08
问题 Disclaimer : I realize this may not be approved by Apple, and I realize traversing the view hierarchy is programmatically unsafe. I'm trying to figure it out for my own curiosity :) I'd like to change the case of a UIImagePickerController's navigation bar items. This works for the title text: viewController.navigationItem.title = [viewController.navigationItem.title uppercaseString]; But this doesn't work for the cancel button (clearly it's not the right location for the cancel button, but I

Storyboard UIImagePicker overlay UIButton does not dismiss preview

只谈情不闲聊 提交于 2019-12-12 03:56:26
问题 update 2 viewDidAppear is executed twice, once before and once after, the overlay button is touched. Would a fix be to add a conditional to viewDidAppear which would return control to the calling class? If so, I would appreciated suggestions. Or maybe the very fact that viewDidAppear execute twice suggests another approach to a fix? update 2 update 1 Maybe the problem is my usage of viewDidAppear and viewDidLoad shown below. Can anyone help, please? - (void)viewDidAppear:(BOOL)animated { self

Terminated due to memory issue when saving altered image to camera roll

五迷三道 提交于 2019-12-12 03:53:15
问题 I am building an app that allows users to add a timestamp to a photo. When a photo from the camera roll is selected my app sometimes crashes and Xcode displays the error: "Message from debugger: Terminated due to memory issue". I found it crashes if I try to add a timestamp to a very large image or if I repeatedly at a timestamp to the same image. Below is the code I believe is relevant to the issue. Also, here is a link to the entire project. This is how the timestamp gets added to the image

Is there a UIImagePickerController replacement that I can use from a controller that is already in a popover?

限于喜欢 提交于 2019-12-12 03:04:46
问题 I'm writing an app that uses UIImagePickerController to let the user choose images from their library. On the iPad, it shows it in a popover (because you must) but the controller which is showing it is already in a popover, and you're not allowed to show a popover from another popover. I can't rework the whole app to avoid the files controller being in a popover, so what I'd like to do is to push the image picker onto the files controller's navigation stack. Obviously this isn't going to work

Change cropper size of UIImagePickerController

冷暖自知 提交于 2019-12-12 02:45:37
问题 I want to change the cropper size of UIImagePickerView from (320*320) to (320 * 240) . I have searched it everywhere, but none them is working fine for me . I have used GKImagePicker https://github.com/gekitz/GKImagePicker But when i just drag its classes to my project . It gives me error . What to do ??? Any help much appreciated . Need to resize cropper like in image below 回答1: Those errors are fixed by importing UIKit/UIKit.h to GKImagePicker.h 来源: https://stackoverflow.com/questions

UIImagePickerController in TabBarController

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:24:36
问题 I am trying to implement the imagepickercontroller inside a UITabBarController. So far, so good.... In my ViewController, where I initiate the imagePickerController and then place in my TabBarViewController tabbar array, I implemented the "loadview" method: - (void)loadView{ self.arController = [[IFAugmentRealityController alloc] initWithViewController:self]; [self showCamera]; [self initOverlayController]; self.picker.delegate = self; [self.view addSubview:self.picker.view]; } - (void

UIImagePickerController in UIPopOverController is not opening up in iOS 5

假如想象 提交于 2019-12-12 02:18:34
问题 in my iPad app i am opening Photo Library in a popover controller. It was working fine in iOS 4 but now its not opening up in iOS 5. i am using the following code for opening Photo Library, UIImagePickerController* picker = [[UIImagePickerController alloc] init]; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; picker.delegate = self; picker.mediaTypes = [UIImagePickerController availableMediaTypesForSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; popOver = [

How to Save Image to Application Folder from UIImagePickerController?

可紊 提交于 2019-12-12 02:12:57
问题 I've a question in mind that driving me crazy. I've searched a lot to solve it, but all the answers that I found were old and not helped. I'm currently working on application with that uses UIImagePickerControllerDelegate and with didFinishPickingMediaWithInfo I want to save the selected image to application folder. Until now I'm able to select the image with this; - (IBAction)btnPressed:(UIButton *)sender { if ([UIImagePickerController isSourceTypeAvailable

How to upload image to mysql database iOS application

梦想的初衷 提交于 2019-12-12 01:42:29
问题 I'm new to iOS development and currently creating a app for my major project in uni. I'm creating a registration page where the user is asked to fill in their details and also upload an image. So far I've got the values going to the database but I can't figure out how to also add the image that has been selected by the image picker. Could anyone help with this? The code is posted below.... RegistrationViewController.h #import <UIKit/UIKit.h> #define kpostURL @"http://myurl.com/myphp.php"

UIImagePickerController differences from iPhone and iPad woes

两盒软妹~` 提交于 2019-12-12 01:39:58
问题 I have an app designed for iPhone that makes use of the UIImagePickerController. The app run in landscape only up until the image picker comes into view in its default portrait. Problem 1: On the iPhone when I rotate the device to portrait to view the image library the image picker view seems to do a flip as if rotating from landscape to portrait? Problem 2: I get the dreaded warning Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove