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-24-2011, 04:29 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: Hann. Münden, Germany
Posts: 9
hegerworld is on a distinguished road
Default Problem with Controller from Storyboard

I have a problem I do not understand, with the storyboard.
I would like to change a UIImageView from another controller:

ViewController 1:

Quote:
ViewController2 * = hvc [self.storyboard instantiateViewControllerWithIdentifier: @ "hvc"];
[hvc load background];
ViewController 2:

Quote:
- {(Void) load background
[backroundImage setImage:appDelegate.background];

or:

[backroundImage setImage:nil];

}
The problem is, he does not change the picture. it remains as it was. Even if I set it to nil, it is not responding.
With instantiateViewControllerWithIdentifier he also finds the correct controller, but nothing happened. A bug in the storyboard? Did any of you an idea?
hegerworld is offline   Reply With Quote
Old 11-24-2011, 10:54 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: Hann. Münden, Germany
Posts: 9
hegerworld is on a distinguished road
Default

Ok, Read the Manual:

Instance Methods

instantiateInitialViewController
Instantiates and returns the initial view controller in the view controller graph.

Code:
- (id)instantiateInitialViewController

This method creates a new instance of the initial view controller each time you call it.
hegerworld is offline   Reply With Quote
Old 11-25-2011, 01:27 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2010
Location: Hann. Münden, Germany
Posts: 9
hegerworld is on a distinguished road
Default

The best way is a NSNotificationCenter, that works!
hegerworld is offline   Reply With Quote
Reply

Bookmarks

Tags
storyboard, uiimageview

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: 399
16 members and 383 guests
chiataytuday, Clouds, David-T, dedeys78, Duncan C, e2applets, EvilElf, iekei, ipodphone, leostc, LunarMoon, Murphy, QuantumDoja, sacha1996, Sami Gh, teebee74
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:38 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0