iPhone, how to send a data change event to the UIView from the application delegator? -


i setup network call in appdelegator class infomation back, , want show in frist uiview. how pass data uiview?

i mean uiview may visible or may destroyed , replaced other one, if visible, how pass value it?

is there publish/subscribe events mechanism in iphone sdk?

you can few different ways, including using key-value observing or nsnotifications.

the basic idea when load uiview, want register observer of key path/posted notification of app delegate. when deallocate view, should unregister observer.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -