Fixed When to use NSInteger vs. int #dev #it #asnwer
Fixed When to use NSInteger vs. int #dev #it #asnwer
When to use NSInteger vs. int
When should I be using NSInteger vs. int when developing for iOS? I see in the Apple sample code they use NSInteger (or NSUInteger) when passing a value as an argument to a function or returning a value from a function.
- (NSInteger)someFunc;... - (void)someFuncWithInt:(NSInteger)value;...
But within a function they’re just using int to track a value
for (int i; i…
View On WordPress














