-3
こんにちは、 "-91.57696007" NSMutableArrayの値をNSStringに変換する方法は?
Webservices *details=[[Webservices alloc] init];
[details getMobileNumberDetails:phnotextfield.text];
NSLog(@"longitudes Arrays from %@",details.resultData);
よう "10.343234"、 "74.982343"、 "76.464844"、 「76.464844とおりにしたとき
NSString
にNSMutableArray
値を変換する方法をすべて」、 "2.256"、
が、このように実装
theCoordinate2.longitude = [[details.longarray objectAtIndex:0] floatValue];
NSLog(@"longitudes list from %@",theCoordinate2.longitude);
-91.57696007
が、私の意図はので、私はiphoneの文字列要素に格納するのに役立つtheCoordinate2.longitude
にすべての値を割り当てることです。
私がすることができますあなたがしようとしていることを理解していない?あなたはそれらのすべての値をその一つの変数に保存したいのですか? あなたの問題は次の行にあるはずです: '[details.longarray objectAtIndex:0]' –