iphone - Getting a coordinate on an imageview -
after searching way drop pin onto imageview mapview i've come conclusion it's not possible. thought can simulate pin drop creating multiple imageviews, hold png image of standard pin, on fly. now, want create imageview , place user taps.(gesture type not important now). know can touch coordinate. need not this. need have annotation pins in place time close , relaunch app. think i'll have plist @ least dictinary hold coordinate on imageview key , callout or popview value. how place pre arranged pins on viewdidload method correct coordinates?thanks ahead.
there 2 (may more ) approaches.
1->you use nsuserdefault
save setting , read them in next launch .. 2->nsdictionary
, have alreay mentioned.
to save setting ...
nsdictionary *mydict = [[nsdictionary alloc] init]; // fill setting data in dictionary here ....................................... [[nsuserdefaults standarduserdefaults] setobject:mydict forkey:@"mymapdict"]; [[nsuserdefaults standarduserdefaults] synchronize];
to retrieve application setting
nsdictionary* mydict = [[nsuserdefaults standarduserdefaults] objectforkey:@"mymapdict"];
Comments
Post a Comment