If you’re used to using terms like the stack and the heap, a local variable is allocated on the stack, while objects are allocated on the heap.
- (void)f
{
int a = 2; //Stack ...……
Convert NSString to int
NSString *aNumberString = @amp;quot;123amp;quot;;
int i = ;
Convert int to NSString
int aNumber = 123;
NSString *aString = [NSString stringWithFormat:@amp;quot; ...……