drawTextInRect seems to break when given a numeric value, unlike drawText

I'm using the SDK on a Mac.
I was trying to draw a timer's value on the screen with drawTextInRect and got the following error:

I then tried with drawText and got no issue.
I also tried passing a literal number to the functions and got the same behaviour.

I recognise this can be easily be worked around but the inconsistency just surprised me and thought i could report it :slight_smile:

1 Like