如何将nsmutablearray数据转换为float
获取数据集如下
Webservices *details=[[Webservices alloc] init];
[details getMobileNumberDetails:phnotextfield.text];
NSLog(@"longitudes Arrays from %@",details.resultData);
“-91.57696007”, “10.343234”, “74.982343”, “76.464844”, “76.464844”,
但是如何在 iOS 上将总数据集转换为 float
呢?
如果我们使用 OjectAtIndex:0
,它会占据第一个位置,但我必须将总响应存储到单个浮点值中,而不在 iphone 中使用 OjectAtIndex:0
。
getting dataset as like below
Webservices *details=[[Webservices alloc] init];
[details getMobileNumberDetails:phnotextfield.text];
NSLog(@"longitudes Arrays from %@",details.resultData);
"-91.57696007",
"10.343234",
"74.982343",
"76.464844",
"76.464844",
But how to convert total dataset into float
on iOS?
If we use OjectAtIndex:0
it takes first position but I have to store total response into single float value without using OjectAtIndex:0
in iphone.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
use