Get integer from UIWebView
I have a webpage that outputs an integer that I need to parse. I know how to get a string from a website in an UIWebView, but I need to get it as an integer. Converti开发者_C百科ng a string to an integer using [myString integerValue] won't work here. How can I do this?
Edit: Here is my error
The reason behind the warning is that your variable is not an integer, but a pointer to an integer.
NSInteger *test = [onlineUsers integerValue];
^
Get rid of the asterisk
精彩评论