ios - Meaning of Array Contents of Map Annotations -


i'm trying iron out bug in map app. i've added working code (1) determines number of annotations displayed on map , (2) builds nsset of annotations. when return array nsset , nslog contents of array, don't understand output. can me understand meaning of array output , how information relates latitude/longitude coordinates plotted when map generated? i'm using xcode 7.1

sample code:

-(void)getanotationsinvisiblemaprectangle{      mkmaprect visiblemaprect = mapview.visiblemaprect;     nsset *visibleannotations = [mapview annotationsinmaprect:visiblemaprect];      // print number of annotations     nslog(@"number of annotations in rect: %lu", (unsigned long)visibleannotations.count);      // return array nsset     nsarray *annotationarray = [visibleannotations allobjects];     nslog(@"%@", annotationarray); } 

sample output when array logged:

2015-10-30 14:22:45.635 [17633:6301958] number of annotations in rect: 0 2015-10-30 14:22:45.635 [17633:6301958] ( ) 2015-10-30 14:22:58.707 [17633:6301958] number of annotations in rect: 6 2015-10-30 14:22:58.708 [17633:6301958] (     "< displaymap: 0x7f84e7947740 >",     "< displaymap: 0x7f84e722a310 >",     "< displaymap: 0x7f84e791a9f0 >",     "< displaymap: 0x7f84e6f47820 >",     "< displaymap: 0x7f84e7910950 >",     "< displaymap: 0x7f84e7460730 >", 

annotations displayed on map object of particular class, in case of type displaymap. since there 6 annotations, displaying memory locations of 6 annotation objects along class type(i.e displaymap). output not reveal information latitude , longitude @ annotation displayed. can coordinates of annotation accessing "coordinate" property of annotation object.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -