tapouillo / BMGlyphLabel

BMGlyphLabel and BMGlyphFont class for iOS7 Sprite Kit
MIT License
31 stars 8 forks source link

Instantiate with 'self' rather than 'BMGlyphLabel' #15

Closed WarpRulez closed 8 years ago

WarpRulez commented 8 years ago

In the [BMGlyphLabel labelWithText:font:] method, rather than

return [[BMGlyphLabel alloc] initWithText:text font:font];

it should be:

return [[self alloc] initWithText:text font:font];

Else if instantiating a derived class using that method, it will return the wrong kind of class.

tapouillo commented 8 years ago

thanks, it is fixed