uiimagepickercontroller

Add UIImageview in Uitextview as in iMessage

耗尽温柔 提交于 2019-12-21 06:54:31
问题 I am using UItextview and adding an extra inputAccessoryview for toolbar buttons to perform additional actions. My toolbar has a camera icon which gets the image from UIImagePickerController and Ι have to add this image in my UItextview . Right now Ι am able to do this with : [myTextView addSubView:imageView]; But that way, always adds the image at the beginning of the textview and what Ι want is to add it at the current cursor location. I would also like to remove this image just like I

Add UIImageview in Uitextview as in iMessage

被刻印的时光 ゝ 提交于 2019-12-21 06:52:37
问题 I am using UItextview and adding an extra inputAccessoryview for toolbar buttons to perform additional actions. My toolbar has a camera icon which gets the image from UIImagePickerController and Ι have to add this image in my UItextview . Right now Ι am able to do this with : [myTextView addSubView:imageView]; But that way, always adds the image at the beginning of the textview and what Ι want is to add it at the current cursor location. I would also like to remove this image just like I

Replicate camera app rotation to landscape IOS 6 iPhone

故事扮演 提交于 2019-12-21 04:28:12
问题 Hi I am trying to replicate the same rotation which can be seen in the camera app when orientation is shifted to landscape. Unfortunately I've had no luck. I need to set this up for the custom cameraOverlayView with UIImagePickerController. From this portrait (B are UIButtons) |-----------| | | | | | | | | | | | | | B B B | |-----------| To this landscape |----------------| | B | | | | B | | | | B | |----------------| In other words I would like the buttons to stick to the original portrait

UIImagePickerController Showing Black Preview Screen

这一生的挚爱 提交于 2019-12-20 21:47:49
问题 I am having a problem when calling the UIImagePickerController to use the camera. Sometimes, but more often than none, the preview screen shows to be black (as the camera itself is covered). After doing some research, it seems that people where not delegating it correctly..however, I believe my set up is correct. A restart of the app is what fixes it. In my .h file I have included UIImagePickerControllerDelegate and UINavigationControllerDelegate. Here is the code for the .m file - (IBAction

cameraOverlayView to crop the result in UIImagePickerController

拜拜、爱过 提交于 2019-12-20 15:28:56
问题 When I use UIImagePickerController with cameraOverlayView , can I get the only a selective region from my overlay view? http://tinyurl.com/2fqy9nq 回答1: Add an UIImageView as child to your cameraOverlayView. Create a black PNG image size 320x480. Cut a rectangle in the middle to produce a hole (transparent pixels). Assign the PNG image to the UIImageView. Alternatively you could overwrite your cameraOverlayView's - (void)drawRect:(CGRect)rect like this (untested out of my head): // Request

how to import Video from iphone library and play in application

穿精又带淫゛_ 提交于 2019-12-20 15:22:23
问题 i am using following code to show video library -(IBAction)showVideoLibrary { UIImagePickerController *videoPicker = [[UIImagePickerController alloc] init]; videoPicker.delegate = self; videoPicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; videoPicker.mediaTypes =[[NSArray alloc] initWithObjects: (NSString *)kUTTypeMovie,nil]; if(self.popoverController!=nil) { [self.popoverController release]; } self.popoverController = [[UIPopoverController alloc]

ios 7 image picker inside popover wrong behavior

本秂侑毒 提交于 2019-12-20 10:25:05
问题 My image picker view controller setted inside popover controller. On iOS 6 everything works great, but on iOS 7 the image is rotated and all movings are doing verse: when turning iPad left image is going down, when moving up image going left, etc. Here is the code for showing my camera: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.delegate = self; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; objPopView = [[UIPopoverController

How do I get a thumbnail or saveable path from UIImagePickerController to use for a UIImageView?

℡╲_俬逩灬. 提交于 2019-12-20 10:11:48
问题 Could somebody please explain or show some sample code of how I can use get a thumbnail to be put into a UIImageView after the user selects a photo with UIImagePickerController? Let's say I want to set a thumbnail as the image of a table view cell. When the user presses the cell, the image picker is shown and the user selects an image that is already on their device. I also want to save the path to that thumbnail so that the next time the view is displayed, the proper thumbnail can be shown.

AVAudioRecorder won't record IF movie was previously recorded & played

别等时光非礼了梦想. 提交于 2019-12-20 09:47:18
问题 My iPhone app uses "AVAudioRecorder" to make voice recordings. It also uses "UIImagePickerController" to record movies and "MPMoviePlayerController" to play movies. Everything works fine until I do all three things in a row: Record a movie using UIImagePickerController Play back the recorded movie using MPMoviePlayerController Try to make a voice recording using AVAudioRecorder When I call AVAudioRecorder's "record" method in step 3, it returns NO indicating failure, but giving no hints as to

how to enable preview after selecting picture from library?

£可爱£侵袭症+ 提交于 2019-12-20 06:30:23
问题 I am trying to write an app which involves picking a picture from either camera or library. Once the picture is picked , I want to show the preview of the picture.It happens by default when camera is opted. Once the photo is clicked, it shows the user to choose or retake. But I want the same to be done when the picture is selected from the photo library also. Can this be done?? 回答1: Ok thanks for the response. Here is what I did: Subclass UIImagePickerController . Upon picking an image, I am