frame
如您在 SKNode.h 中所见,该属性是只读的
@property (SK_NONATOMIC_IOSONLY, readonly) CGRect frame;
我建议您阅读更多SKNode
文档:https ://developer.apple.com/library/ios/documentation/SpriteKit/Reference/SKNode_Ref/Reference/Reference.html
在文档中,您将找到以下段落:
The frame property provides the bounding rectangle for a node’s visual content, modified
by the scale and rotation properties. The frame is non-empty if the node’s class draws
content. Each node subclass determines the size of this content differently. In some
subclasses, the size of the node’s content is declared explicitly, such as in the
SKSpriteNode class. In other subclasses, the content size is calculated implicitly by the
class using other object properties. For example, a SKLabelNode object determines its
content size using the label’s message text and font characteristics.
所以frame
是由 SKNode 子类根据不同的属性计算的