Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Webサービスを使用してステーションに関する情報を検索するアプリがあり、応答JSONを取得します。ただし、中央の位置を変更するたびに、ピンが既にマップ上にある場合でも、ピンをリロードして新しいピンを追加する必要があります。
応答JSONを取得し、表示する情報を取得して注釈を作成できます。問題は、中央を移動すると、注釈が他の注釈の上に再ロードされることです。
問題は、Webサービスに接続するメソッドにそのメソッドを挿入していたこと、または応答を受け取ったときに...
しかし、私は最初の行のこのメソッドにメソッドを挿入しました:
- (MKAnnotationView *)mapView:(MKMapView *)mapViewStation viewForAnnotation:(id <MKAnnotation>)annotation [map removeAnnotations:map.annotations]; //Code
それは揺れる。ありがとう