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 11-15-2011, 05:50 AM   #1 (permalink)
Registered Member
 
Join Date: Nov 2011
Posts: 5
chrisb_1988 is on a distinguished road
Default How do you push an image from a Root View Controller to a new View Controller?

I'm creating a Photo application using storyboards.

In the first View controller I am using UIImagePickerController to allow the user to select an image from either their camera or photo library. However instead of the image then appearing in the UIIMageView on the same View Controller I want it to automatically push the image to a second View Controller. So as soon as you have dismissed the Camera or Photo Library you are looking at the image on the second View Controller.

Any help would be greatly appreciated.

thanks.
chrisb_1988 is offline   Reply With Quote
Old 11-15-2011, 09:47 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 245
samurle is on a distinguished road
Default

Quote:
Originally Posted by chrisb_1988 View Post
I'm creating a Photo application using storyboards.

In the first View controller I am using UIImagePickerController to allow the user to select an image from either their camera or photo library. However instead of the image then appearing in the UIIMageView on the same View Controller I want it to automatically push the image to a second View Controller. So as soon as you have dismissed the Camera or Photo Library you are looking at the image on the second View Controller.

Any help would be greatly appreciated.

thanks.
Personally, I would just save the image globally. Wherever you save your global variables
(singleton class, root controller, appdelegate, etc..), put it there, so you can access it from anywhere.
samurle is offline   Reply With Quote
Reply

Bookmarks

Tags
uiimagepickercontroller, viewcontroller

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: 394
17 members and 377 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, chiataytuday, dre, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, mbadegree, n00b, pbart, QuantumDoja, Retouchable, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

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