Skip to content

Conversation

@ioboi
Copy link

@ioboi ioboi commented Nov 3, 2013

now the code doesn't have any deprecation warnings for ios 7.
i think it would be fine if you create a branch or tag for ios < 7.

cheers :)

@instantkaffee
Copy link

    CGSize size = [label sizeWithAttributes: @{NSFontAttributeName: self.labelFont}];

evanpurkhiser added a commit to evanpurkhiser/CS-Extra-Credits that referenced this pull request Nov 22, 2013
@sketchytech
Copy link

Firstly, excellent work. Thanks very much for contributing this code. In iOS 7 the sizeWithFont warning can be fixed with the following code:

sizeWithAttributes:[[self.labelFont fontDescriptor] fontAttributes]

Not suitable for earlier versions of iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants