ios - How do I convert NSUInteger value to int value in objectiveC? -


this question has answer here:

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

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -