I am a objective-c newbie and I was wondering how do you use data obtained from one view in another? For example I ask a user for a text input, and this text input then changes a label when a button is hit. I want this information for another label in a different view. how would I get it?
Thanks
I am a objective-c newbie and I was wondering how do you use data
Share
There are many ways to share data across views (or classes) in objective-c. One common method is to create a Singleton object that functions as a global object for your application. Here’s a great tutorial about using Singletons in objective-c for global data.