iphone - using NSInteger in a loop -
do nsinteger occupies memory? should use in loop?
look @ apple documentation, nsinteger :
#if __lp64__ || target_os_embedded || target_os_iphone || target_os_win32 || ns_build_32_like_64 typedef long nsinteger; #else typedef int nsinteger; #endif
it's 4 bytes on iphone, int, don't have worry memory.
Comments
Post a Comment