dequeueReusableAnnotationViewWithIdentifier method
Returns a reusable annotation view object associated with its identifier.
For performance reasons, you should generally reuse MLNAnnotationView
objects for identical-looking annotations in your map views. Dequeueing
saves time and memory during performance-critical operations such as
scrolling.
@param identifier A string identifying the annotation view to be reused.
This string is the same one you specify when initially returning the
annotation view object using the -mapView:viewForAnnotation: method.
@return An annotation view object with the given identifier, or nil if no
such object exists in the reuse queue.
Implementation
MLNAnnotationView? dequeueReusableAnnotationViewWithIdentifier(objc.NSString identifier) {
final _ret = _objc_msgSend_1sotr3r(this.ref.pointer, _sel_dequeueReusableAnnotationViewWithIdentifier_, identifier.ref.pointer);
return _ret.address == 0 ? null : MLNAnnotationView.castFromPointer(_ret, retain: true, release: true);
}