Can any one tell me the difference between NSInteger and NSUInteger in Objective-C?
Which is better to use in an application and why it is better?
Home / DeveloperSection / Forums / Difference between NSInteger and NSUInteger
Can any one tell me the difference between NSInteger and NSUInteger in Objective-C?
Which is better to use in an application and why it is better?
Tarun Kumar
02-Dec-2015You always be aware of integer conversion rules dealing with NSInteger and NSUInteger.
For example: NSInteger can takes and returns negative values, and NSUInteger takes values and returns only unsigned values.