objective c convert string to int code example
Example: how to cast string to int in c
use atoi from the stdlib.h
char *string = "hi";
int x = atoi(string);
use atoi from the stdlib.h
char *string = "hi";
int x = atoi(string);