Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-22-2009, 09:04 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 7
Default How do I customize the toolbar in the iPhone camera

Hi,

I've created a camera application for iPhone and now I sit and polish the last of it. My application is a collage application where the user can take multiple pictures in a row.

As it is today I have a customized camera view that contains one UIButton for taking the pictures and one UIButton for getting back to the main view. Now I want to replace these buttons with a toolbar.

The problem is that my application is design for landscape orientation and the camera control can only show in portrait mode. This makes the design of the GUI a little bit tricky and I now want to move away from having the buttons in the view to having them placed in a toolbar. When you initialize the camera (UIImagePickerController) you can set a bunch of different parameters and one of them is UIImagePickerController.toolbarHidden. If I set the value to NO it will show an empty toolbar and my question here is, how do I add items to this toolbar?

I've tried different solutions such as [self setToolbarItemsNSArray*)], [self.toolbar setItemsNSArray*)] etc. etc. without any luck.

All help is appreciated!
Regards, drisse
drisse is offline   Reply With Quote
Old 10-22-2009, 12:54 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

Just add a toolbar to your overlay view.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Old 10-23-2009, 02:54 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 7
Default

Quote:
Originally Posted by BrianSlick View Post
Just add a toolbar to your overlay view.
Yeah I've done that but there is a problem with that that I can't get around.

My application is designed for landscape orientation and is build up with three view controllers that I switch between using a navigation controller. So when I start my application I start in landscape where the user can choose among a bunch of different collages. Then when the user taps on the "camera" button I switch to the view controller that owns the UIImagePickerController/camera and here's the problem. The camera view does not support landscape orientation (from what I know) but for some reason the overlay view ends up in landscape in portrait, do you understand what I mean? The overlay view covers only half of the screen. I don't know how to change the overlay view to fit the screen.

Any idea on how to solve this or the other problem?
drisse is offline   Reply With Quote
Old 10-23-2009, 09:07 AM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

Might need to set your autoresizing masks.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is offline   Reply With Quote
Reply

Bookmarks

Tags
camera, iphone development, uiimagepickercontroller, uitoolbar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 248
21 members and 227 guests
ADY, bookesp, ckgni, dacapo, Dani77, DarkAn, Davey555, Desert Diva, HemiMG, iDifferent, jakerocheleau, JasonR, LEARN2MAKE, nobre84, prchn4christ, Rudy, ryantcb, Speed, themathminister, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,766
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:40 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0