Type cast integer from array index


Easy Objective c

Wrong :-

int value =(int) [arrValues  objectAtIndex:i] intValue;

Correct  :-

int value = [[arrValues  objectAtIndex:i] intValue];

View original post