Wednesday, 15 July 2015

objective c - Is it wrong to use int in Cocoa and CocoaTouch? -


How to use something like NSInteger instead of

int In the code? I see it in many instances, including Apple's official code sample.

There is a similar question here. Com: I use the NSInteger I like it because it is a future-proof, Apple now uses it on int , and this is the recommended method of working.

is not "incorrect" to use int .


No comments:

Post a Comment