ios - How do I convert NSUInteger value to int value in objectiveC? -
this question has answer here:
- how convert nsinteger int? 4 answers
how convert nsuinteger value int value in objectivec?
and how print nsuinteger value in nslog , tried %@,%d,%lu these not working , throwing ex-bad access error.
thank you
nsuinteger intval = 10; int iint1 = (int)intval; nslog(@"value : %lu %d", (unsigned long)intval, iint1); for more reference, here
Comments
Post a Comment