I'm attempting to run the Xcode project that was recently completed and I have one error to sort. Any help is greatly appreciated....
There is a Semantic Issue that appears before the error - The warning is as follows :
Undeclared selector 'boundingRectWithSize:options:atrributes:context'
The ARC Semantic Issue error is as follows :
No visible @interface for 'NSString' declares the selector 'boundingRectWithSize:options:attributes:context:'
The code is below...
// Since sizeWithFont() method has been depreciated, boundingRectWithSize() method has been used for iOS 7.
if ([NSString instancesRespondToSelector:@selector(boundingRectWithSize:options:attributes:context:)]) {
NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
paragraphStyle.lineBreakMode = NSLineBreakByClipping;
CGRect requiredLabelRect = [self.textLabel.text boundingRectWithSize:contentViewSize
options:NSStringDrawingUsesLineFragmentOrigin
attributes:@{NSFontAttributeName:self.textLabel.font,
NSParagraphStyleAttributeName: paragraphStyle
}
context:nil];