地图中的信息是:
<objectgroup name="Waypoint" width="32" height="24">
<object name="waypointsline" x="843" y="3">
<polyline points="0,0 -13,130 -39,202 -69,237 -125,262 -162,295 -189,340 -184,376 -166,411 -124,453 -98,484 -78,529 -78,598 -80,659 -101,689 -200,695 -317,700 -453,696 -534,693 -566,656 -582,622 -585,563 -586,488 -577,428 -550,335 -547,284 -565,225 -599,190 -675,171 -751,164 -799,133 -829,93 -842,17"/>
</object>
</objectgroup>
如何在 Objective-C 中提取它们?
我试过了:
NSMutableDictionary *waypoints = [objects objectNamed:@"waypointsline"];
if(waypoints) {
NSString* v = [waypoints valueForKey:@"waypointsline"];
}
它返回零。