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 10-07-2011, 01:53 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 33
X-RaY is on a distinguished road
Question Updating Table after applicationWillEnterForeground

So here's the problem,
I've got a tabbar application with some tabs, one of them is called 'contacts' (which is a UIViewController).
When the app just starts the function 'didFinishLaunchingWithOptions:' in the appDelegate will be activated.

and offcourse the 'Contacts viewWillAppear:'
Now, at this moment I can update the table within the Contacts view.
No problem there,

Little note, the 'contacts tab' will be shown by default, the appdelegate has no reference to it.

the problem however is, when I dismiss the app, and bring it back to the foreground, no method will be called in the contacts class...

I tried: - (id)initWithNibName:
- (void)viewDidLoad
-(void)viewWillAppear:

But non of 'm get's called.
Which means, i can't update the table when a certain conditions is true.

Is there any way... either by making a temporarily reference to the Contacts tab in appDelegate , or sending a message (calling a method) to 'Contacts' directly, so i can update the table?


I've got the idea that i'm explaining this very poorly... so feel free to ask for more information

in short:
How to get a temporarily reference to the contacts-tab-view
X-RaY is offline   Reply With Quote
Old 10-08-2011, 03:46 AM   #2 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 33
X-RaY is on a distinguished road
Default

--small bumb--


Edit:
Answer I was looking for:
http://stackoverflow.com/questions/2...-myappdelegate

Last edited by X-RaY; 10-10-2011 at 04:53 AM. Reason: answer found
X-RaY is offline   Reply With Quote
Reply

Bookmarks

Tags
appdelegate, reference, tab, view

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
18 members and 381 guests
13dario13, 7twenty7, eski, EvilElf, glenn_sayers, HemiMG, iOS.Lover, jarv, LunarMoon, n00b, pbart, Pudding, QuantumDoja, sacha1996, Sami Gh, UMAD, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,122
Posts: 402,906
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

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