12345678910111213141516171819202122232425262728 |
- //
- // IHAnotation.swift
- // Inhealth
- //
- // Created by weclouds on 2019/12/13.
- // Copyright © 2019 weclouds. All rights reserved.
- //
- import UIKit
- import MapKit
- class IHAnotation: NSObject ,MKAnnotation{
- //需要一个初始值
- var coordinate: CLLocationCoordinate2D = CLLocationCoordinate2DMake(0, 0)
- var icon : UIImage?
- var id :String?
- var name:String?
- var hotelData:HotelMapData?
- init(coordinate:CLLocationCoordinate2D,icon:UIImage?,id:String?,name:String?,hotelData:HotelMapData?) {
- self.coordinate = coordinate
- self.icon = icon
- self.id = id
- self.name = name
- self.hotelData = hotelData
- }
- deinit {
- log.debug("IHAnotation销毁")
- }
- }
|