Reputation: 671
I want to draw highlight to UILabel
and to control line-space of UILabel
.
But, It's not easy. So, I had known about 'CCLabelTTF
' through googling.
Question: Could I realize highlight and line-space with CCLabelTTF
of cocos2d instead of UILabel
in View-based application?
Upvotes: 0
Views: 472
Reputation: 69469
As Javy said it for Cocos2D only, but you can use TTTAttributedLabel.
Which will accept a NSAttributedString
, in which you can set a part of the string to have a different background color.
Upvotes: 1
Reputation: 8720
CCLabelTTF is for Cocos2d applications only. It does not work with standard UIKit applications.
Upvotes: 0