从 UIWebView 获取整数
我有一个网页输出一个我需要解析的整数。我知道如何从 UIWebView 中的网站获取字符串,但我需要将其作为整数获取。使用 [myString integerValue] 将字符串转换为整数在这里不起作用。我该怎么做?
编辑:这是我的错误
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. Converting a string to an integer using [myString integerValue] won't work here. How can I do this?
Edit: Here is my error
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
警告背后的原因是您的变量不是整数,而是指向整数的指针。
The reason behind the warning is that your variable is not an integer, but a pointer to an integer.