NSString objects are always constants!
Is there ugly code like this in your code base?
NSString *message = [NSString stringWithFormat:@"%@ world!", @"Hello"];
Remember that all NSString objects are compile time constants. The above can easily be re-written as:
NSString *message = [@"Hello" stringByAppendingString:@" world!"];
Written by Sam Green
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#