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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 05-13-2011, 05:51 PM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 2
jamesjmadison is on a distinguished road
Default UIImagePickerController Camera Bug??? (Looks like it is "Sent to Back")

I am creating a window-based application (I am using window-based because I like how the universal apps are organized), but I am having trouble with the UIImagePickerControllerSourceTypeCamera. I want to have two views:

the parent view: a menu screen
the sub view: the screen where you can choose the photo from a gallery or where you can use the camera to take a photo

The main issue is, when I push the button to take a picture with the camera, it works and I can see the camera controls, and I can even take a picture with no problem. However, whatever objects that are in the parent view are covering the "viewfinding" screen. (i.e. if I am pointing my camera to a flower, I can see the flower on the screen, but there are buttons and imageviews from the parent view overlayed on it. I hope that makes sense).

I am adding the ImagePickerController as a modal view. You can see the code below. When I choose photo from album, it seems to be working okay, but when I try to take a picture with the camera, it is like it is sent to the back of everything.

Code:
-(IBAction)SetImage:(id)sender{
		
	UIImagePickerController* picker = [[UIImagePickerController alloc] init];
	picker.delegate = self;
	
	if((UIButton *) sender == ChoosePhoto) {
		picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
	} else {
		picker.sourceType = UIImagePickerControllerSourceTypeCamera;
	}
	
	[self presentModalViewController:picker animated:YES];
	
}
Maybe I am just missing something really obvious. Any help would greatly be appreciated. Thanks!
jamesjmadison is offline   Reply With Quote
Old 07-25-2011, 03:41 AM   #2 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 3
juggler is on a distinguished road
Default

Did you fix the problem? I have the same "bug" here and trying to fix it since yesterday.
juggler is offline   Reply With Quote
Reply

Bookmarks

Tags
camera, ipad, iphone, uiimagepickercontroller, xcode

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: 370
6 members and 364 guests
doffing81, dre, iOS.Lover, Kirkout, MikaelBartlett, PlutoPrime
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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