I have some data into a string and I wish to store that data in an integer array... Below is the code.
int valMines[256];
// 'b' is NSString with 256 values in it.
for(int i=0; i<[b length]; i++){
valMines[i] = [NSString stringWithFormat:@"%d", [b characterAtIndex:i]];
NSLog(@"valMines1 is %@", valMines[i]);
}
I am getting a warning and due to that my application is not getting loaded: Assignment makes integer from pointer without a cast.
Please help