1) I have the ViewController with the MapKit
1.1) I have added some pin's to Map
class ViewController: UIViewController, MKMapViewDelegate
2) I write the new classes for custom pin Callout and Annotation
class CustomPointAnnotation: MKPointAnnotation {
class CustomCalloutView: UIView {
3) I haved created .xib for my custom pin callout
4) I created the button in my .xib, this button must do something, for example
@IBAction func clickTest(sender: AnyObject) {
print("aaaaa")
}
5) This button doesn't work
What is usually practice for this? I want to make my button working.
Button is blue:
All project you can see on Github: https://github.com/genFollowMe1/forStack Thank you, sorry for English )