Reputation: 63
What are differences between Scene and View? I also read Cocoa: scene vs. view but I don't understand differences. I appreciated if you give an example.
Upvotes: 0
Views: 905
Reputation: 3210
From documentation.
SpriteKit content is placed in a window, just like other visual content. SpriteKit content is rendered by the SKView class. The content that an SKView object renders is called a scene, which is an SKScene object. Scenes participate in the responder chain and have other features that make them appropriate for games.
An SKScene object represents a scene of content in Sprite Kit. A scene is the root node in a tree of Sprite Kit nodes (SKNode). These nodes provide content that the scene animates and renders for display. To display a scene, you present it from an SKView object
Upvotes: 3