EDIT: Opps. I posted this in the Mac section and not the IOS section. sorry
I created my first popover for an iPad app. I need to return a value back from it when it is pressed. But in making it I can see that I am basically creating a new UIViewController class and it is easy to push information to it while you are.
So getting the info back to my first view controller I would use NSUserDefaults or a Singleton which I have never experimented with yet as a global variable?
I am wondering what is the best way if anyone can recommend something for returning data to the first ViewController?
Thanks.
I created my first popover for an iPad app. I need to return a value back from it when it is pressed. But in making it I can see that I am basically creating a new UIViewController class and it is easy to push information to it while you are.
So getting the info back to my first view controller I would use NSUserDefaults or a Singleton which I have never experimented with yet as a global variable?
I am wondering what is the best way if anyone can recommend something for returning data to the first ViewController?
Thanks.
Last edited: