2012-11-29 106 views

回答

0

可以使用條件,如果:

  1. #include "TargetConditionals.h"
  2. 包括模擬器唯一的代碼是這樣的:

    #if TARGET_IPHONE_SIMULATOR 
    //code for simulator only 
    #endif 
    

*資料來源:https://stackoverflow.com/a/458388/312312

+0

我不明白。我在談論Xcode的位置模擬。我不認爲這是你可以在代碼中控制的東西。 – an0

相關問題