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.
私のプロジェクトには2つのターゲット(liteとproとしましょう)があり、ターゲットに応じて設定の内容を変更したいと考えています。それは可能ですか?コードから一部のセルを非表示にすることはできますか? ありがとう...
とにかく、見つけました!
#ifdef PRO_VERSION controller.hiddenKeys = [NSSet setWithObjects:@"Key1", @"Key2", nil]; #endif
そのため、アプリの「プロ」バージョンでは、Key1 および Key2 セルは非表示になっています。