I imagine it is just an int, but I want to verify.
我想它只是一个int,但我想验证。
Thanks Corey
谢谢科里
2 个解决方案
#1
-1
Yes, just an int.
是的,只是一个int。
#2
2
I would suggest using NSInteger/NSUInteger instead of int. NS(U)Integer maps to the appropriate size based on the environment you are running in. It might not matter much for the current iPhones/iPods, but you might as well future proof your code. See CocoaDev for further discussion.
我建议使用NSInteger / NSUInteger而不是int。 NS(U)Integer根据您运行的环境映射到适当的大小。对于当前的iPhone / iPod来说,这可能没那么重要,但您可以在将来证明您的代码。有关进一步的讨论,请参阅CocoaDev。
#1
-1
Yes, just an int.
是的,只是一个int。
#2
2
I would suggest using NSInteger/NSUInteger instead of int. NS(U)Integer maps to the appropriate size based on the environment you are running in. It might not matter much for the current iPhones/iPods, but you might as well future proof your code. See CocoaDev for further discussion.
我建议使用NSInteger / NSUInteger而不是int。 NS(U)Integer根据您运行的环境映射到适当的大小。对于当前的iPhone / iPod来说,这可能没那么重要,但您可以在将来证明您的代码。有关进一步的讨论,请参阅CocoaDev。