I have CCLabelTTF with NSString text. On the 5th IOS sizeWithFont: returns height bigger then sizeWithAttributes: on the 7th.
if ([[[UIDevice currentDevice] systemVersion] compare:@"7.0" options:NSNumericSearch] == NSOrderedAscending)
{
dim = [string sizeWithFont:font];
}
else
{
dim = [string sizeWithAttributes:[NSDictionary dictionaryWithObject:[UIFont fontWithName:name size:(CGFloat)size] forKey:NSFontAttributeName]];
}
dim differs on 1 pixel for 5 and 7 ios