Retrieve Value from NSString
Posted
by Taimur Hamza
on Stack Overflow
See other posts from Stack Overflow
or by Taimur Hamza
Published on 2010-06-09T12:25:18Z
Indexed on
2010/06/09
12:32 UTC
Read the original article
Hit count: 219
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
© Stack Overflow or respective owner