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 07-11-2010, 01:27 AM   #1 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 31
cliaco is on a distinguished road
Default Update from dismiss

Hello,

I would like to update the opener view when dismissModalViewControllerAnimated is fired.

I explain my problem :
I have a view (view1) containing a uiimageview. When I click on this image, I push a new view (view2). In this new view I can create an image and save it in the app folder. When I return to view1 with dismissModalViewControllerAnimated I would like to update the imageview in view1 and show the new image.

Can I update the uiimageview from view2 (and how can i do that) ?
or can I detect the dismiss in view1 and update the uiimageview when returning.

I thank you for any idea or advice on how to solve this question.

Christophe
cliaco is offline   Reply With Quote
Old 07-11-2010, 02:21 AM   #2 (permalink)
New to the SDK
 
franzwarning's Avatar
 
Join Date: Jul 2010
Location: Portland, Oregon
Age: 19
Posts: 165
franzwarning is on a distinguished road
Send a message via AIM to franzwarning Send a message via Skype™ to franzwarning
Default

Quote:
Originally Posted by cliaco View Post
Hello,

I would like to update the opener view when dismissModalViewControllerAnimated is fired.

I explain my problem :
I have a view (view1) containing a uiimageview. When I click on this image, I push a new view (view2). In this new view I can create an image and save it in the app folder. When I return to view1 with dismissModalViewControllerAnimated I would like to update the imageview in view1 and show the new image.

Can I update the uiimageview from view2 (and how can i do that) ?
or can I detect the dismiss in view1 and update the uiimageview when returning.

I thank you for any idea or advice on how to solve this question.

Christophe
Hey I had the same problem except it was with a web view. After your dismissModalViewController Line I would call this method. I'm not quite sure if this helps but here is my code for that:

Code:
-(void)awakeFromNib
{
	[myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"URL"]]];
}
franzwarning is offline   Reply With Quote
Old 07-11-2010, 04:50 AM   #3 (permalink)
Registered Member
 
Join Date: May 2010
Posts: 31
cliaco is on a distinguished road
Default

Quote:
Originally Posted by franzwarning View Post
Hey I had the same problem except it was with a web view. After your dismissModalViewController Line I would call this method. I'm not quite sure if this helps but here is my code for that:

Code:
-(void)awakeFromNib
{
	[myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"URL"]]];
}
Hi,
thanks for your reply.
is awakeFromNib situated in the first view (the one which call the modalView) ?
How do you call it ?
cliaco is offline   Reply With Quote
Reply

Bookmarks

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: 327
15 members and 312 guests
akphyo, alexP, cgokey, EXOPTENDAELAX, flamingliquid, guusleijsten, mariano_donati, ohmniac, Paul Slocum, PavelSea, SLIC, Sloshmonster, Sonuye857, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

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