How do I increment a NSUInteger variable?
-
19-09-2019 - |
Question
NSUInteger wordInt = sentence.length;
I want to add 1 like this -> wordInt = wordInt + 1 ;
But It doesn't work. I don't know....
Please!!
Solution
That should work. So should wordInt++
. NSUInteger
is a (typedef'd) primitive type.
Please post more code so we can see the context.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow