Maybe I missed something. But my current app in appstore works in iOS 7, but in iOS 8 it completely fails because it will not create a pre-allocated sprite pool. It seems that they are written at the same address, unless sprites have special properties.
In iOS 7, the following code creates a set of 4 unique objects. In iOS 8, the same code creates a collection with only one object:
NSMutableSet *aSet = [NSMutableSet set]; SKColor *sameColor = [SKColor redColor]; CGSize sameSize = CGSizeMake(10, 10); for (int i = 0; i < 4; i++) {
iOS8 Result:
2014-09-09 15: 06: 43.065 MSM [383: 27490] aSet Count: 1
I've gone crazy? Surprisingly, almost all of my application is based on this concept of code, repeated over and over again. If I do the same, but use something like NSObject , the problem disappears, so this is a new change for SKSprite . I know that I can get around this with some crazy things, but it is a huge pain, since I should not have done this, and I was hoping to avoid sending another version.
objective-c cocoa-touch ios8 nsset skspritenode
Ch buckingham
source share