Retrieve Value from NSString
- by Taimur Hamza
Hi,
i have a NSString instance ,i want to retrieve value from it and store it into an integer.
This is wat i am doing but its not working.
NSString *totalcnt;
char *str = totalcnt;
int a = atoi(str);
Help me out.
Thanks
Taimur