I read this document and declare like that:
CCLabelTTF *label = [CCLabelTTF initWithString: @"a" fontName: @"HelveticaNeue" fontSize: 24 dimensions: CGSizeMake(320,480) hAlignment: CCVerticalTextAlignmentTop];
but its show warning: no know class method for selector... anybody can help me?
In Cocos2d V3, the cclabelTTF is changed. The available methods in CCLabelTTF.m are only:
So your implementation is not correct in COCOS2d V3. That is valid for V2 version. I think still document needs to be updated.
You should use any of the above four methods, like:
This will call the constructor internally as mentioned above.