iPhone camera toolbar buttons - iphone

The iPhone camera toolbar holds the following buttons: cancel/record
I would like to change the cancel button to the small image button that takes me to the photo library.
I wasn't sure if i need to use the overlay or does the xcode have something more comfortable in this case since this is something well known and used.
Is there something like this?
Thanks,

You can set overlayView to your UIImagePickerController
imagePicker.cameraOverlayView = yourOverlayView;

UIImagePickerController Class Reference
You can customize an image picker controller to manage user interactions yourself. To do this, provide an overlay view containing the controls you want to display, and use the methods described in “Capturing Still Images or Movies.” You can display your custom overlay view in addition to, or instead of, the default controls. Custom overlay views for the UIImagePickerController class are available in iOS 3.1 and later by way of the cameraOverlayView property. For a code example, see the PhotoPicker sample code project.

Related

UIImagePickerController both camera and library

I would have though that the UIImagePickerController would allow you to use the camera or choose from the library from within the view? It seems I have to pick one or the other cia the sourceType? Is there no way to add a button to the choose library view to switch to camera?
You would have to implement this yourself. You can make a simple UISegmentedControl and when the value is changed, you change the source of the UIImagePickerController.

UIActionSheet... How to implement UIImagePicker?

I'm new to iOS developement... I want to add 3 buttons on this view: cancel, choose from library and take from camera.
I already know the UIImagePicker method.
Thanks
Ciao Davide, reading UIImagePickerController Class Reference should be useful:
You can customize an image picker controller to manage user interactions yourself. To do this, provide an overlay view containing
the controls you want to display, and use the methods described in
“Capturing Still Images or Movies.” You can display your custom
overlay view in addition to, or instead of, the default controls.
Custom overlay views for the UIImagePickerController class are
available in iOS 3.1 and later by way of the cameraOverlayView
property. For a code example, see the PhotoPicker sample code
project.
Here there is UIImagePickerController Class Reference:
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html
And here there is PhotoPicker sample code:
http://developer.apple.com/library/ios/#samplecode/PhotoPicker/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010196

Custom button instead of the default button on the camera iphone 4

I know you must do to take a picture with a button that was created by me and not the default one.
Also as you can remove the preview that comes after taking a photo?
Can you help?
Use the showCameraControls property of UIImagePickerController to show or hide the default controls
Use the cameraOverlayView property of UIImagePickerController to provide your own view to display atop of the camera view. You can then assign this property a custom UIView that will contain your own UIButtons
Use the takePicture action/method of UIImagePickerController to ask the camera picker to take a picture. You will typically call this method in the action of your custom button.
Read the documentation and the Programming Guides ;)

Thumbnail slider in toolbar like iPad Photos app

I would like to put thumbnails in the toolbar like the Photos app. Like the screenshot on the left:
(source: apple.com)
Is there is a built-in control to do this, or do I have to implement it from scratch?
If the answer is from scratch, any tips?
This would be a control you'd have to write yourself. I'm not what the best approach would be, but I think I'd go with subclassing a UISlider, drawing the array of images next to each other to create the track, and then using the current image as the handle.
From scratch, is the answer, unfortunately.
You create a custom view and add your array of images as subviews using UIImageView objects incrementing your x position by the the thumbnail width you've determined to use.
Then override the touch events for you custom view. Determine which image view the touch is currently over in -touchesMoved and use Core Animation to animate the current view's scale making it larger than the rest. Add the custom view to your toolbar wrapping your custom view in a UIBarButtonItem using -initWithCustomView.
Remember to enable user interaction on your custom view or you won't receive any touch events. If you need help with the code, update your question with some code specific questions.
Should anyone still need it, I made an effort of coming up with ThumbnailPickerView - a simple UI control resembling Photos.app thumbnail slider.

How to change the UIImagePickerControllerSourceType in iPhone

Hey can anybody tell me how I can change the camera view in iphone where i found to buttons like 'use' and 'retake' and 'Move to Scale'message in that window I want to add some Label on top most part.How could I do that.
Reply soon
You question title and your actual question seem a bit different.
To change the UIImagePickerControllerSourceType just set your controller's .sourceType property to your desired type:
UIImagePickerControllerSourceTypePhotoLibrary,
UIImagePickerControllerSourceTypeCamera,
UIImagePickerControllerSourceTypeSavedPhotosAlbum
Now, to add a label on the picker controller, you should create your UILabel and add it to your picker's "camera overlay view" (#property(nonatomic,retain) UIView *cameraOverlayView). To use this feature you should be building your app for OS 3.1 or later.
In any case, it would help to take a look at the UIImagePickerController Class reference.