Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-15-2008, 07:13 AM
Junior Member
 
Join Date: Sep 2008
Posts: 1
Default Subclassing UIImagePickerController

I'm trying to modify the UI that the user is presented with when they're taking a picture. Specifically, I want to remove the "Take Picture" title bar and replace it with a custom graphic.

I can create a subclass of UIImagePickerController that doesn't change anything, and (from what I can tell) the things I want to change are a higher level than the controller itself.

I'm a little lost on how to start. If anyone could share some thoughts (or even a tiny bit of code) I'd greatly appreciate it.

Thanks


-hack
Reply With Quote
  #2 (permalink)  
Old 09-24-2008, 05:37 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default

I think I need to do the same thing. I've got an application mostly built, but I need to access the images via the UIImagePickerController and can't seem to figure it out without displaying the UIImagePickerController window, which isn't an option.

Anyone got any ideas?
Reply With Quote
  #3 (permalink)  
Old 09-25-2008, 06:19 PM
Administrator
 
Join Date: Jun 2008
Location: Arizona
Posts: 410
Send a message via AIM to mxweas Send a message via Yahoo to mxweas Send a message via Skype™ to mxweas
Default

I don't think apple will allow you to modify their camera controller as they will most likely change the core of it. So a subview that works to change the take picture bar might be different upon a firmware update... Therefore I don't believe it is possible in that apple will not approve the application.

Max
Reply With Quote
  #4 (permalink)  
Old 09-25-2008, 06:35 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default

I've been researching this for the past couple days, I think you're right. I've managed to change the view on the UIImagePickerControl, but I havent managed to access the actual photos, so it does me no good.

I found there are some private headers you can load up which will give you access, but same thing Apple wont allow them, so still a no go.

Thanks for confirming.
Reply With Quote
  #5 (permalink)  
Old 11-11-2008, 02:00 PM
Junior Member
 
Join Date: Nov 2008
Posts: 1
Default

Quote:
Originally Posted by hack4 View Post
I'm trying to modify the UI that the user is presented with when they're taking a picture. Specifically, I want to remove the "Take Picture" title bar and replace it with a custom graphic.

I can create a subclass of UIImagePickerController that doesn't change anything, and (from what I can tell) the things I want to change are a higher level than the controller itself.

I'm a little lost on how to start. If anyone could share some thoughts (or even a tiny bit of code) I'd greatly appreciate it.

Thanks


-hack
I just wrote a short article on my blog discussing the view hierarchy in UIImagePickerController - the view hierarchy you want actually belongs to PLCameraController rather than UIImagePickerController. Although that controller is undocumented, you don't need to use undocumented APIs to manipulate its views.

See: The Air Source Blog

Airsource Ltd. - Mobile Software Experts
The Airsource - A blog on mobile software

Last edited by airsource; 11-11-2008 at 02:06 PM. Reason: add sig
Reply With Quote
Reply

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



All times are GMT. The time now is 12:05 AM.