How to add a Map annotation on MKMapView?

前端 未结 3 1347
被撕碎了的回忆
被撕碎了的回忆 2020-12-10 07:04

Hey, im trying to add an annotation on my map. How can i do it?

Heres my code:

- (void)abreMapa:(NSString *)endereco {

NSString *urlString = [NSStri         


        
3条回答
  •  爱一瞬间的悲伤
    2020-12-10 07:36

    You'll also have to code up an annotation class that adopts the MKAnnotation protocol. e.g.:

    @interface MyMapAnnotation : NSObject  {
    ...
    }
    

提交回复
热议问题