I have a custom callout view in MapKit, which contains a button. I want to make it so that tapping this button will perform a given segue. How can I go about doing that since I am loading the custom callout from an .xib whose class is a subclass of UIView (and not UIViewController, so I can't just perform the segue in its class file)
EDIT
if control == view.detailCalloutAccessoryView as? CustomCalloutView {
if control.viewWithTag(6).touchesBegan {
performSegueWithIdentifier("showRentalDetailsFromCalloutView", sender: self)
}
}