Emoji Monotoned in CCLabelTTF

289 views Asked by At

I am using cocos2d-iphone in objective-c.

When I use CCLabelTTF to show text, if there are emojis in the text they are also colored to the color of the text and that's not what I want.

However when I use UITextView, emojis are good. No matter what color I set it to by code like

@property (nonatomic, readwrite, strong) UITextView *someTextView;
SomeTextView.textColor = [UIColor redColor];

emojis are still what normal color it should look like(not red in this case).

However there is already lots of code I use CCLabelTTF, changing to UITextView is just too hard. Anyone know how to fix this in CCLabelTTF?

0

There are 0 answers