Closed imryan closed 10 years ago
That's not the right way to use sizeWithAttributes:
. You can find the right way to use it just a couple of lines above your code:
fontSize = [text sizeWithAttributes: @{NSFontAttributeName:self.options[AMOptionsCellBadgeFont]}];
As you can see the two lines of code are in a #ifdef
directive to maintain backwards compatibility with iOS prior to 7.0. The code in this state won't compile on iOS6 or 5.
Oh okay, my bad!
Changed
sizeWithFont:
tosizeWithAttributes:
.