ios - Choose current annotation -


i receive list of coordinates , insert on map. got new coordinates , want move pins code:

            [uiview animatewithduration:4.0 delay:0.0 options:uiviewanimationcurveeasein animations:^{              [oldcoordinate setcoordinate:newcoordinate.coordinate];         }completion:^(bool finished) {          }];  

i loop code every new coordinate can not move because can not control it. if use array got, example

 [myarray objectatindex:[indexpath row]];  

and recieve array work. how can take find current annotation on map ? (annotation on map, , new coordinates have)

to current annotations on map loop this:

mkmapview * map = [[mkmapview alloc]initwithframe:self.view.frame];  (mkpointannotation * annotation in [map annotations]) {     //change annotation coordinate new coordinate } 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -