1
NSUInteger wordInt = sentence.length;

I want to add 1 like this -> wordInt = wordInt + 1 ;

But It doesn't work. I don't know....

Please!!

anthares
  • 11,070
  • 4
  • 41
  • 61
Beomseok
  • 471
  • 1
  • 6
  • 22

1 Answers1

6

That should work. So should wordInt++. NSUInteger is a (typedef'd) primitive type.

Please post more code so we can see the context.

Shaggy Frog
  • 27,575
  • 16
  • 91
  • 128