I received a return value from SQLite fetch
int primaryKey = sqlite3_column_int(statement, 0);
and I’m going to use it as a selector’s object:
[[ABC alloc] performSelector:@selector(abcWithAAA:) withObject:[NSNumber numberWithInt:primaryKey]];
the NSLog result for primarykey is a number 4:
NSLog(@"primaryKey:%i",primaryKey);
4
but the NSLog result for [NSNumber numberWithInt:primaryKey] is 131628896.
why? and how do i convert the int value correctly?
Thanks!
131628896 is the memory address of the NSNumber object.
use: