开发者

How do I set/get cross-class variables?

开发者 https://www.devze.com 2022-12-18 14:12 出处:网络
I\'m creating an application for the iPhone in which I need 开发者_运维技巧to transfer information from variables between views/classes.What is the best way to do this (without utilizing CoreData/pers

I'm creating an application for the iPhone in which I need 开发者_运维技巧to transfer information from variables between views/classes. What is the best way to do this (without utilizing CoreData/persistent storage)?


Ok--so after more research I discovered Singletons. I implemented that as its own class, then every time I instantiated it, it saved as the correct variables.

0

精彩评论

暂无评论...
验证码 换一张
取 消