Custom annotation showing same image for all different types of POI's
问题 I need to show different annotation for different cat_ID on map. in this question i am including only two categories . let item = json["data"].arrayValue var count = 0 initMK() dispatch_async(dispatch_get_main_queue()) { while count < item.count{ let lat = item[count]["comp_lat"].stringValue let lng = item[count]["comp_lng"].stringValue if item[count]["ct_id"].stringValue == "783"{ self.state = "Jachthavens" let poi = MKPointAnnotation() let coordinates = CLLocationCoordinate2D(latitude: