SpriteKit Changes for Objective-C
SpriteKit
SK3DNode.h
Modified -[SK3DNode hitTest:options:]
Declaration | |
---|---|
From | - (NSArray *)hitTest:(CGPoint)thePoint options:(NSDictionary *)options |
To | - (NSArray<SCNHitTestResult *> * _Nonnull)hitTest:(CGPoint)point options:(NSDictionary<NSString *,id> * _Nullable)options |
SKAction.h
Added +[SKAction actionNamed:]
Added +[SKAction pause]
Added +[SKAction play]
Added +[SKAction stop]
Added SKAction(MixerControl)
Added SKAction(NodeWithPhysicsBody)
Added SKAction(PlaybackControl)
Declaration | |
---|---|
From | + (SKAction *)animateWithTextures:(NSArray *)textures timePerFrame:(NSTimeInterval)sec |
To | + (SKAction * _Nonnull)animateWithTextures:(NSArray<SKTexture *> * _Nonnull)textures timePerFrame:(NSTimeInterval)sec |
Declaration | |
---|---|
From | + (SKAction *)animateWithTextures:(NSArray *)textures timePerFrame:(NSTimeInterval)sec resize:(BOOL)resize restore:(BOOL)restore |
To | + (SKAction * _Nonnull)animateWithTextures:(NSArray<SKTexture *> * _Nonnull)textures timePerFrame:(NSTimeInterval)sec resize:(BOOL)resize restore:(BOOL)restore |
Modified +[SKAction group:]
Declaration | |
---|---|
From | + (SKAction *)group:(NSArray *)actions |
To | + (SKAction * _Nonnull)group:(NSArray<SKAction *> * _Nonnull)actions |
Modified +[SKAction sequence:]
Declaration | |
---|---|
From | + (SKAction *)sequence:(NSArray *)actions |
To | + (SKAction * _Nonnull)sequence:(NSArray<SKAction *> * _Nonnull)actions |
Modified +[SKAction setTexture:]
Introduction | |
---|---|
From | iOS 7.0 |
To | iOS 7.1 |
SKAudioNode.h (Added)
Added SKAudioNode
Added SKAudioNode.avAudioNode
Added SKAudioNode.positional
Added SKAction(SKAudioNode)
SKCameraNode.h (Added)
SKConstraint.h
Modified SKConstraint.referenceNode
Declaration | |
---|---|
From | @property(retain) SKNode *referenceNode |
To | @property(retain, nonatomic, nullable) SKNode *referenceNode |
SKEmitterNode.h
Added SKParticleRenderOrder
Modified SKEmitterNode.particleZPositionRange
Deprecation | |
---|---|
From | -- |
To | iOS 8.0 |
Modified SKEmitterNode.particleZPositionSpeed
Introduction | Deprecation | |
---|---|---|
From | iOS 8.0 | -- |
To | iOS 7.0 | iOS 8.0 |
SKKeyframeSequence.h
Declaration | |
---|---|
From | - (instancetype)initWithKeyframeValues:(NSArray *)values times:(NSArray *)times |
To | - (instancetype _Nonnull)initWithKeyframeValues:(NSArray * _Nonnull)values times:(NSArray<NSNumber *> * _Nonnull)times |
SKNode.h
Added -[SKNode moveToParent:]
Modified SKNode.children
Declaration | |
---|---|
From | @property(nonatomic, readonly) NSArray *children |
To | @property(nonatomic, readonly, nonnull) NSArray<SKNode *> *children |
Modified SKNode.constraints
Declaration | |
---|---|
From | @property(nonatomic, copy) NSArray *constraints |
To | @property(nonatomic, copy, nullable) NSArray<SKConstraint *> *constraints |
Modified -[SKNode nodesAtPoint:]
Declaration | |
---|---|
From | - (NSArray *)nodesAtPoint:(CGPoint)p |
To | - (NSArray<SKNode *> * _Nonnull)nodesAtPoint:(CGPoint)p |
Modified -[SKNode objectForKeyedSubscript:]
Declaration | |
---|---|
From | - (NSArray *)objectForKeyedSubscript:(NSString *)name |
To | - (NSArray<SKNode *> * _Nonnull)objectForKeyedSubscript:(NSString * _Nonnull)name |
Modified -[SKNode removeChildrenInArray:]
Declaration | |
---|---|
From | - (void)removeChildrenInArray:(NSArray *)nodes |
To | - (void)removeChildrenInArray:(NSArray<SKNode *> * _Nonnull)nodes |
SKPhysicsBody.h
Modified -[SKPhysicsBody allContactedBodies]
Declaration | |
---|---|
From | - (NSArray *)allContactedBodies |
To | - (NSArray<SKPhysicsBody *> * _Nonnull)allContactedBodies |
Modified +[SKPhysicsBody bodyWithBodies:]
Declaration | |
---|---|
From | + (SKPhysicsBody *)bodyWithBodies:(NSArray *)bodies |
To | + (SKPhysicsBody * _Nonnull)bodyWithBodies:(NSArray<SKPhysicsBody *> * _Nonnull)bodies |
Modified SKPhysicsBody.joints
Declaration | |
---|---|
From | @property(nonatomic, readonly) NSArray *joints |
To | @property(nonatomic, readonly, nonnull) NSArray<SKPhysicsJoint *> *joints |
SKReferenceNode.h (Added)
Added SKReferenceNode
SKScene.h
SKShader.h
Modified -[SKShader initWithSource:uniforms:]
Declaration | |
---|---|
From | - (instancetype)initWithSource:(NSString *)source uniforms:(NSArray *)uniforms |
To | - (instancetype _Nonnull)initWithSource:(NSString * _Nonnull)source uniforms:(NSArray<SKUniform *> * _Nonnull)uniforms |
Declaration | |
---|---|
From | + (instancetype)shaderWithSource:(NSString *)source uniforms:(NSArray *)uniforms |
To | + (instancetype _Nonnull)shaderWithSource:(NSString * _Nonnull)source uniforms:(NSArray<SKUniform *> * _Nonnull)uniforms |
Modified SKShader.uniforms
Declaration | |
---|---|
From | @property(copy) NSArray *uniforms |
To | @property(copy, nonnull) NSArray<SKUniform *> *uniforms |
SKTexture.h
Added SKTexture.CGImage
Declaration | |
---|---|
From | + (void)preloadTextures:(NSArray *)textures withCompletionHandler:(void (^)(void))completionHandler |
To | + (void)preloadTextures:(NSArray<SKTexture *> * _Nonnull)textures withCompletionHandler:(void (^ _Nonnull)(void))completionHandler |
SKTextureAtlas.h
Declaration | |
---|---|
From | + (instancetype)atlasWithDictionary:(NSDictionary *)properties |
To | + (instancetype _Nonnull)atlasWithDictionary:(NSDictionary<NSString *,id> * _Nonnull)properties |
Declaration | |
---|---|
From | + (void)preloadTextureAtlases:(NSArray *)textureAtlases withCompletionHandler:(void (^)(void))completionHandler |
To | + (void)preloadTextureAtlases:(NSArray<SKTextureAtlas *> * _Nonnull)textureAtlases withCompletionHandler:(void (^ _Nonnull)(void))completionHandler |
Modified SKTextureAtlas.textureNames
Declaration | |
---|---|
From | @property(nonatomic, readonly) NSArray *textureNames |
To | @property(nonatomic, readonly, nonnull) NSArray<NSString *> *textureNames |
SKTransition.h
SKUniform.h
Modified SKUniform.name
Declaration | |
---|---|
From | @property(readonly) NSString *name |
To | @property(nonatomic, readonly, nonnull) NSString *name |
Modified SKUniform.textureValue
Declaration | |
---|---|
From | @property SKTexture *textureValue |
To | @property(nonatomic, retain, nullable) SKTexture *textureValue |
Modified SKUniform.uniformType
Declaration | |
---|---|
From | @property(readonly) SKUniformType uniformType |
To | @property(nonatomic, readonly) SKUniformType uniformType |
SKVersion.h (Added)
Added #def SK_VERSION
SKVideoNode.h
Deprecation | |
---|---|
From | -- |
To | iOS 8.0 |
Modified -[SKVideoNode initWithVideoURL:]
Deprecation | |
---|---|
From | -- |
To | iOS 8.0 |
Deprecation | |
---|---|
From | -- |
To | iOS 8.0 |
Deprecation | |
---|---|
From | -- |
To | iOS 8.0 |