Objective-C, xCode for iOS
In a class, I want to assign a singleton integer’s value. Right now I have:
[ExGlobal sharedMySingleton].tetraCountEx = tetraCount;
I’ve got this warning before, and have been able to resolve it, but this seems like I would have to do something different by letting the compiler know that tetraCountEx is an integer. I just don’t know how.
That error is a result of trying to store a number as a pointer. With out you posting any code as to how
tetraCountEXis declared I can only guess what your problem is.On reason may be that
tetraCountExis defined as anNSNumberand if that is the case useAnd the other reason may be accidentally declaring tetraCountEx as a pointer