How to add right callout accessory to custom annotation in swift?
<p>I've got the following custom annotation class:</p>

<pre><code>import UIKit
import MapKit

class LocationMapAnnotation: NSObject, MKAnnotation {
    var title: String?
    var coordinate: CLLocationCoordinate2D
    var location: Location

    init(title: String, coordinate: CLLocationCoordinate2D, location: Location) {
        self.title = title
        self.coordinate = coordinate
        self.location = location
    }
}
</code></pre>

<p>I am loading the annotations into a map view like this:</p>

<pre><code>for i in 0..&lt;allLocations.count{
            //Add an annotation
            let l: Location = self.allLocations[i] as! Location
            let coordinates = CLLocationCoordinate2DMake(l.latitude as Double, l.longitude as Double)
            let annotation = LocationAnnotation(title: l.name, coordinate: coordinates, location: l)
            mapView.addAnnotation(annotation)
        }
</code></pre>

<p>How can I add an (i) info button to the right of the annotation in a map view. Also is there an easy way to animate it?</p>

<p>Thanks.</p>