You can use an enum. The compiler treats them as constant and they are
available both in Obj-C and Swift.
Le 12 août 2014 à 20:04, Paul Scott a écrit :
> Except the compiler cannot treat them as constants for optimization.
>
> Paul
>
>> On Aug 12, 2014, at 10:57 AM, Gerriet M. Denkmann
>> w
Except the compiler cannot treat them as constants for optimization.
Paul
> On Aug 12, 2014, at 10:57 AM, Gerriet M. Denkmann
> wrote:
>
>
> On 13 Aug 2014, at 00:52, Jeff Kelley wrote:
>
>> Gerriet,
>>
>> You should be able to make a constant variable, not a preprocessor
>> definiti
On 13 Aug 2014, at 00:52, Jeff Kelley wrote:
> Gerriet,
>
> You should be able to make a constant variable, not a preprocessor
> definition, and import the file that declares it in your project’s bridging
> header. Something like this:
>
> in Constants.h:
> extern const NSInteger kPara
Gerriet,
You should be able to make a constant variable, not a preprocessor
definition, and import the file that declares it in your project’s bridging
header. Something like this:
in Constants.h:
extern const NSInteger kParameterA;
in Constants.m:
const NSInteger kParameterA = 17;
Then, in you