iphone - Data is not coming to Annotation method in ios -


how send data

 -(mkannotationview *)mapview:(mkmapview *)mv viewforannotation:     (id <mkannotation>)annotation { 

method. once please observe code , give me solution.

-(mkannotationview *)mapview:(mkmapview *)mv viewforannotation: (id <mkannotation>)annotation {     static nsstring *defaultpinid = @"com.invasivecode.pin";      mkannotationview *pinview =(mkannotationview *)[mapview dequeuereusableannotationviewwithidentifier:defaultpinid];     nslog(@"pindata....%@",pinview);     if (pinview == nil){         pinview = [[mkannotationview alloc]initwithannotation:annotation reuseidentifier:defaultpinid];          pinview.canshowcallout = yes;         pinview.enabled = yes;          pinview.rightcalloutaccessoryview = [uibutton buttonwithtype:uibuttontypedetaildisclosure];         [pinview setselected:yes animated:yes];          pinview.image = [uiimage imagenamed:@"location.png"];     }     else{      }      return  pinview; } 

if add annotation map , set class contains code showed above map's delegate, ios call viewforannotation when ever needs redraw it


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -