Closed odrobnik closed 10 years ago
I'm somewhat of a novice but this is what I did to work around the issue… Not sure if it is bullet proof but it dropped the warning.
//Changed This line
CGSize neededSize = [self.titleLabel.text sizeWithFont:self.titleLabel.font ];
//To this
NSDictionary* attribs = @{NSFontAttributeName:self.titleLabel.font};
CGSize neededSize = [self.titleLabel.text sizeWithAttributes:attribs];
@BenGlobism I used your code wrapped in an ifdef since this deprecation only concerns you if you have a deployment target >= iOS 7
Fixed and merged.
Fix the deprecated
sizeWithFont:
usage inDTActivityTitleView