Using cocos2dx 2.2.2
I have a CCLabelTTF that wraps its string so I set it's CCSize to be (somevalue,0) and it works perfectly. But I want to find the height of the CCLabelTTF which returns 0 when I do it. I tried using boundingBox().size but this returns 0 as well.
(CCLabel without dimension also returns 0 height)
How can I get height of wrapped CCLabelTTF?
or how many lines wrapped string is?
A Long string is wrapped in this CCLabelTTF
Let's say above has height 10
A Long string
is wrapped in
this should return 30.
things I've tried:
all above returns 0...
reminding you again normal CCLabelTTF return 0 height as well.
So how can I get the resulted height of CCLabel?