How to convert int to NSString?

objective-c

Solution

Primitives can be converted to objects with `@()` expression. So the shortest way is to transform `int` to `NSNumber` and pick up string representation with `stringValue` method:

NSString *strValue = [@(myInt) stringValue];

or

NSString *strValue = @(myInt).stringValue;

Problem

I'd like to convert an `int` to a `NSString` in Objective C. How can I do this?

Original source