Our 'Get One, Give One' promo on Lifetime Memberships is back! - Click here
SKLabelNodes now Support Multiple Lines in iOS11
But we'll also look at the pre-iOS11 way of handling this
In this video tutorial we’ll look at some new Swift 4 code you can use if you are targeting iOS11 or higher that allows you to set the number of lines in an SKLabelNode. Yes that exists now. It was a long time coming.
But we’ll also look at the older way of doing this, by writing a convenience function that takes in two labels and splits one long text String into two Strings. We’ll do this by iterating through the letters (characters) in the string and figuring out at what point we want to split it up.
Become part of the CartoonSmart Team with our Affiliate Program
Make recurring money when you refer a subscriber. 30 day tracking. Commissions 33%-50%!