uiimagepickercontroller

UIImagePickerController not picking image in iOS 9

拥有回忆 提交于 2019-12-13 15:33:15
问题 I am using the below code to select image from Camera or Photo Library. In iOS 8, it is picking image nicely. But in iOS 9 . picker view displayed but not selecting image. Not even go back to the controller. Tap on picture does nothing. What am i doing wrong. - (void)showImgaePickerViewForSourceType:(UIImagePickerControllerSourceType)sourceType { UIImagePickerController *imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.modalPresentationStyle =

How to set video capture frame rate?

有些话、适合烂在心里 提交于 2019-12-13 14:10:37
问题 So I have this basic video recording application working, but i'm wondering how I can set the frame rate (I think thats the right term) of the video capture, so when looking at the camera feed live on screen and also for that reduced capture rate to be captured when recording as well to give that slow blurry effect? my code so far is: HEADER // ViewController.h // VideoTest // // #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> #import <MobileCoreServices/MobileCoreServices.h>

Collage of images with different shapes

痞子三分冷 提交于 2019-12-13 14:00:52
问题 I am completely new into photo editing app development. How can i develop grid styles like this, so that i can add multiple images picked from cameraroll to create a collage? I went through below links, but not getting the way to achieve this. Any suggestion or links will be helpful. LINK1 LINK2 回答1: You can make custom layout for this or tweak the Flow Layout of Collection View .Check out this code.It has the same functionality you want. You can calculate the width and height of images and

UIImagePickerControllerDelegate Methods Not Called When Delegate Not UIViewController

这一生的挚爱 提交于 2019-12-13 13:59:29
问题 I have a view that contains several images, each intended to be selected from the device's photo library. I followed an example from the Food Tracker tutorial, using Tap Gesture Recognizers, one for each image view. I've wired an outlet for each UIImageView into my view controller. When an image is selected, I want the image from the device's photo library to be set to the image property of the selected UIImageView. The way I thought to do this is to use closures encapsulated into a class

Identifying different pickers in UIImagePickerController delegate

对着背影说爱祢 提交于 2019-12-13 12:17:38
问题 I have a view with a couple of buttons whick I use to present UIImagePickerControllers (both camera and media pickers). When I create the UIImagePickerControllers, I give them diffrent names and present them modaly as you can see in the code below: - (void) startMediaBrowserFromViewControllerForBGImage { UIImagePickerController * mediaUIForBGImage = [[UIImagePickerController alloc]init]; //i also set a bunch of different settings here, but it doesn't matter for this purpose mediaUIForBGImage

iPhone: UIImagePickerControllerDelegate methods not Invoked?

旧巷老猫 提交于 2019-12-13 08:27:47
问题 I have a camera controller based on a UIImagePickerController : @interface CameraController : UIImagePickerController <UIImagePickerControllerDelegate> // <UIImagePickerControllerDelegate, UINavigationControllerDelegate> { } @end Init generates a warning that UINavigationControllerDelegate is not implemented (it is expected since I don't want my object to be that delegate): - (id) init { if(!(self = [super init])) return nil; super.sourceType = UIImagePickerControllerSourceTypeCamera; //

How I can use a UIImagePickerController to add an image to a tweet? [closed]

那年仲夏 提交于 2019-12-13 08:20:57
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I'm new to iOS development so I'm confused. I have a ViewController, in this ViewController there are many UIButtons. How I can open the picker and add the image to the tweet using addImage ? PS: I'm using

Select multiple image from photo library using swift

妖精的绣舞 提交于 2019-12-13 08:04:42
问题 I am new in IOS and i want to select multiple image from photo library using swift4 and get into array of images.Please help me to do this. 回答1: You can not use the multiple image in UIImagepickercontroller u have to use assetlibrary for it. You can use a custom image picker. I think ImagePicker is best for Swift 来源: https://stackoverflow.com/questions/49993560/select-multiple-image-from-photo-library-using-swift

Amazon S3 Cognito - Upload image from image picker - Swift 3

落花浮王杯 提交于 2019-12-13 07:26:56
问题 I have done static image upload to AWS server successfully. When i combine it with imagepicker, I am facing a wierd issue due to which same image is being uploaded to AWS even though I pick and name them differently. The code is as follows: internal func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) { let image = info[UIImagePickerControllerOriginalImage] as! UIImage var imageUrl = info[UIImagePickerControllerReferenceURL] as?

iOS, UIImagePickerController, is there a way to detect when user taps the take picture button without implementing custom controls?

ⅰ亾dé卋堺 提交于 2019-12-13 07:25:15
问题 Xcode 7.3, iOS 9.3.1 I want to use two custom overlay views for when the user is about to take a picture and after while editing the picture. To change the overlay I would like to know if there is a callback method from the UIImagePickerControllerDelegate that will let me know when the user starts editing the picture, or when the user has tapped the take picture button. The only methods I know of are: - (void)imagePickerController:(UIImagePickerController *)picker