title: No visible @interface for 'NSString' declares the selector 'boundingRectWithSize:options:attributes:context:'
body: <p>I'm attempting to run the Xcode project that was recently completed and I have one error to sort. Any help is greatly appreciated....</p>
  
  <p>There is a Semantic Issue that appears before the error - The warning is as follows :</p>
  
  <blockquote>
    <p>Undeclared selector 'boundingRectWithSize:options:atrributes:context'</p>
  </blockquote>
  
  <p>The ARC Semantic Issue error is as follows : </p>
  
  <blockquote>
    <p>No visible @interface for 'NSString' declares the selector 'boundingRectWithSize:options:attributes:context:'</p>
  </blockquote>
  
  <p>The code is below...</p>
  
  <pre><code>// 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];
  </code></pre>