objective c - [iOS][Background] updating map pins | drawing lines -


hy :)

i trying update in background position of device (iphone) , works simulator http://grab.by/melq (the annotations added in background).

but when testing iphone not work, have got line between last position (before being in background) , position when becomes active.

what coding ?

i made test of making list when app in background , when application becomes active again load list of positions recorded. (work simulator)

    - (void)handleaddlocations {         nslog(@"%s | %@", __pretty_function__, self.locationbackgroundlist);          if ([self.locationbackgroundlist count] > 0) {             (cllocation *backgroundlocation in self.locationbackgroundlist) {                  if (yes){                     locannotation* annotation = [[locannotation alloc] initwithcoordinate:backgroundlocation.coordinate];                     nslog(@"%s %@", __pretty_function__, [annotation description]);                     [self.mapview addannotation:annotation];             }          mkuserlocation *userlocation = [[mkuserlocation alloc] init];         [userlocation setcoordinate:backgroundlocation.coordinate];          [self mapview:self.mapview didupdateuserlocation:userlocation];           }         [self.mapview updateconstraints];          [self.locationbackgroundlist removeallobjects];         self.locationbackgroundlist = [[nsmutablearray alloc] init];       }   } 

thanks helping ;)

its better option add annotation creating list in of locations in background.this not possible manage uielements when app in background.for should add positions in array while yous app in background.


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -