title: iOS, how to disable CERTAIN warning about deprecated methods
body: <p>I'm moving from iOS6 to iOS7, but I want to keep the code that works for iOS6, so my code looks like this:</p>
  
  <pre><code>if (isiOS7orAbove) {
      sizeios7 = [text boundingRectWithSize:CGSizeMake(TEXTVIEW_WIDTH, 9999)
                  options:NSStringDrawingUsesLineFragmentOrigin 
                  attributes:nil context:nil];
  }else{
      size = [text sizeWithFont:[self cellFont]
              constrainedToSize:CGSizeMake(TEXTVIEW_WIDTH, 9999)
              lineBreakMode:NSLineBreakByWordWrapping];
  }
  </code></pre>
  
  <p>But Xcode keeps warning me that <code>[text sizeWithFont...]</code> is deprecated. Now since I'm sure that my flag isiOS7orAbove can handle the iOS version so I don't need the warning because I have dealt with it.</p>
  
  <p>I don't want to really DISABLE warnings about deprecated methods, what I want is tell Xcode I have deal with it, should work for lower version of iOS.</p>
  
  <p>So is it possible to only remove the warning for [text sizeWithFont...]?</p>
  
  <p>I guess something called a macro should do it, like <code>#IF IOS6</code> but I don't know exactly how. </p>