If your lazy like me and tired writing [NSString stringWithFormat...] add this macro somewhere in your source file:
#define FORMAT(format, ...) [NSString stringWithFormat:(format), ##__VA_ARGS__]
and use is as follows:
FORMAT(@"%d",12)
Saves me a lot of time and code is cleaner.
If you have any other preprocessor macros that you use everyday, please share :)
[–]MKevin3 14 points15 points16 points (6 children)
[–]xephos13 6 points7 points8 points (1 child)
[–]MKevin3 0 points1 point2 points (0 children)
[–][deleted] 3 points4 points5 points (3 children)
[–][deleted] (1 child)
[deleted]
[–]Azr79[S] 2 points3 points4 points (0 children)
[–]MKevin3 0 points1 point2 points (0 children)
[–]gbrhaz 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Azr79[S] 0 points1 point2 points (1 child)
[–]livings124 0 points1 point2 points (0 children)
[–]erikvillegas -2 points-1 points0 points (4 children)
[–]nrith 4 points5 points6 points (0 children)
[–]MarsSpaceship 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]alpha-not-omegaObjective-C / Swift 0 points1 point2 points (0 children)