How to use Prefix.pch in WP8 like in iOS?

后端 未结 2 696
臣服心动
臣服心动 2021-01-26 15:55

In iOS I have 5 application which use same code. I was able to refer the common classes and separate the application name, theme and color using the values from the Prefix.pch f

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-26 16:24

    Just replace

    #define APPLICATION_NAME @"Application01" by #define APPLICATION_NAME_Application01

    and

    #if APPPLICATION_THEME = @"Brown" by #if APPPLICATION_THEME_Brown

    additional the instead of #define you can just set it in the project properties in the menu Build->Conditional compilation Symbols: and just put APPLICATION_NAME_Application01

提交回复
热议问题