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.
我的项目中有两个目标(比如说 lite 和 pro),我想根据目标更改设置的内容。有可能这样做吗?我可以从代码中隐藏一些单元格吗?谢谢...
反正我找到了!
#ifdef PRO_VERSION controller.hiddenKeys = [NSSet setWithObjects:@"Key1", @"Key2", nil]; #endif
因此,在应用程序的“专业”版本中,Key1 和 Key2 单元格是隐藏的。