开发者

How do I increment a NSUInteger variable?

开发者 https://www.devze.com 2022-12-23 03:25 出处:网络
NSUInteger wordInt = sentence.length; I want to add 1 like this -> wordInt = wordInt + 1 ; But It doesn\'t work. I don\'t know....
NSUInteger wordInt = sentence.length;

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

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

P开发者_JS百科lease!!


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

Please post more code so we can see the context.

0

精彩评论

暂无评论...
验证码 换一张
取 消