iphone - Set maximum value of NSInteger -


*sorry if has been posted before have been looking 30 mins , cant find anything*

hi, have nsinteger called currentcoins , want coins maximum value 999. have tried including

#undef nsintegermax #define nsintegermax 999 

but nsinteger isn't taking notice of this. has got solutions? (i'm doing ios)

thanks in advance.

you should never ever redefine system define nsintegermax. set type of system building app (32 or 64 bit).

just define own max like:

#define kmaxcoins 999 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -