views:

20

answers:

2

Hi all,

I need a help from you, That is I am implementing an application in that I need to call a method once the app resign and becomeActive but it is not working. Is there any way to call a method from our viewController when the device become active.

Thanks in advance. Sekhar Bethalam.

A: 

When your VC is created, add an observer for the UIApplicationDidBecomeActive notification (and any others you may wish to react to) and have it perform a selector when it receives that notification on your VC (or some other object you know about at that time).

jer
Very Thanks Jer. It is working great now.
sekhar
A: 

Hello Sekhar

I have same issue.. How did you solve? when appdelegate method UIApplicationDidBecomeActive get called, I want to call method of RootviewController to load refresh data from server. Could you please help and guide me how to achieve to refresh RootviewController when device become active again.

Regards Petta

pettaiphone