简体   繁体   中英

What data type do I use for an integer in SOAP XML in Cocoa?

I imagine it is just an int, but I want to verify.

Thanks Corey

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.

是的,只是一个整数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM