Objective-C iPhone编程:设置地标自定义名称
我只想更改地标名称。 我听说我需要创建一个自定义类,但它不起作用。
总是告诉我坐标是只读的? 谢谢
i just want to change the placemark name.
I heard i need to create a custom class but it doesn't work.
Always tell me the coordinates are in ReadOnly?
Thanks
我只想更改地标名称。 我听说我需要创建一个自定义类,但它不起作用。
总是告诉我坐标是只读的? 谢谢
i just want to change the placemark name.
I heard i need to create a custom class but it doesn't work.
Always tell me the coordinates are in ReadOnly?
Thanks
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
您需要创建一个实现 MKAnnotation 的类 协议。您的实现可以实现标题和副标题属性。您实例化注释实现并将其添加到您的 MKMapView 通过 添加注释。
You need to create a class that implements the MKAnnotation protocol. Your implementation can implement the title and subtitle properties. You instantiate your annotation implementation and add it to your MKMapView via addAnnotation.