Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 9, 2009, 06:24 AM   #1
arnieterm
macrumors regular
 
Join Date: Aug 2008
Problem with UIImagePickerController

I have created a very simple project that has two viewcontrollers
WelcomeViewController and AddInfoViewController
In the applicationDidFinsihLaunch method

Code:
WelcomeScreenViewController* welcome = [ [WelcomeScreenViewController alloc] initWithNibName:@"WelcomeScreen" bundle:nil];
		[window addSubview: welcome.view];
There is a button on Welcome screen on whose click, I show another view controller
as shown:
Code:
AddInfoViewController* addinfo = [ [AddInfoViewController alloc] initWithNibName: @"AddInfo" bundle:nil ];
	CGRect f = self.view.frame;
	f.origin.y = 0;
	addinfo.view.frame = f;
	//[navController pushViewController:addchild animated:YES];
	[self.view insertSubview:addinfo.view aboveSubview:self.view];
Then the addinfo has a button to show the UIImagePickerController for selecting an image from photo album

I am also able to get the event when the user select "Choose" for an image
Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
{
	selectPhoto.view.hidden = YES;
	[selectPhoto dismissModalViewControllerAnimated:YES];		
}
My problem is that when the UIImagePickerController goes away from screen it also takes away the addinfo viewcontroller and I am only seeing the welcomeviewcontroller
What is wrong with my approach?
Any idea??
Thanks
Arnieterm
arnieterm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Resolved: UIImagePickerController editing view circle overlay - resolved troop231 iPhone/iPad Programming 4 May 14, 2014 06:55 AM
UIImagePickerController DennisBlah iPhone/iPad Programming 0 Mar 21, 2014 10:05 AM
GoodPlayer Problem - Never mind. Problem solved. BasicGreatGuy iPad Apps 0 Mar 14, 2014 01:18 PM
iTunes DRM problem? Or, HD Versions of Movie on ATV1 Problem? Aqueous Apple TV and Home Theater 5 Feb 9, 2014 07:54 AM

Forum Jump

All times are GMT -5. The time now is 06:57 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC