Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 ios 开发中,我在应用程序启动时获得令牌 ID。我正在使用 MVC,我必须在其他几个控制器上使用这个 token-id。访问令牌 ID 的最佳方式是什么?
共享/单例类将服务于您的目的。
如何在目标 C 中创建单例类
Objective-C 中的单例共享数据源