Help me find an alternative for the deprecated method ...
CGSize size = [title sizeWithFont:buttonFont minFontSize:10 actualFontSize:nil forWidth:_view.bounds.size.width lineBreakMode:NSLineBreakByClipping];
Can (boundingRectWithSize: options: attributes: context :) do this? Something like that...
NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys: [UIFont systemFontOfSize:10], NSFontAttributeName, nil]; CGSize size = [title boundingRectWithSize:CGSizeMake(_view.bounds.size.width-kBorder*2, _view.bounds.size.height) options:NSLineBreakByClipping attributes:attributes context:nil].size;
I'm right? Waiting for your advice :)
source share