How do you store "int"
values in an NSMutableArray
or NSMutableDictionary
? Chronic problems with JSON data that come in as integers.
Should I try to store these integers as NSNumber
objects or just as strings that contain the integer?
How dangerous is it to do a "raw" (int) conversion on the pointers if I know the values will always be Natural Numbers (numbers>=0 including zero for null.)
The integers I'm always working with are Foreign Key Id's from a database.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…