I'm moving from iOS6 to iOS7, but I want to keep the code that works for iOS6, so my code looks like this:
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];
}
But Xcode keeps warning me that [text sizeWithFont...] 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.
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.
So is it possible to only remove the warning for [text sizeWithFont...]?
I guess something called a macro should do it, like #IF IOS6 but I don't know exactly how. 
 
     
     
    