SKLabelNode or UILabel?

I read the link to the SKLabel class , and it says that SKLabelNode is a node that draws a string. I also read the link to the UILabel class , and it says basically the same thing: it shows a static text view. How is this different from UILabel and which should I use? Is UILabel just for more ways to manage aspects of the text view?

+4
source share
1 answer

SKLabelNodeis part of the Sprite Kit framework and can only be added to SKScene. UILabelis part of UIKit and can be added to UIView. If you are working with a universal application, you will want to use UIKit and UILabel; Sprite Kit is commonly used for games.

+6
source

All Articles