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 中,一个不错的选择是一个关于页面,其中包含应用程序的“发布日期”......我宁愿不必手动更新。有什么方法可以收集应用程序的编译日期吗?预处理器,或检查应用程序,还是我想不到的东西?
回答我自己的问题感觉很脏,但是,嘿,这就是答案:
NSString *compiled = [NSString stringWithUTF8String:__DATE__];