dimanche 7 décembre 2014

How Do I add Pins (Annotations) with Xcode 6 (Swift)


I'm new to the swift language, and haven't done an application with mapkit yet. But I have the map and regions set, but I'm hung up on how to allow users to add pins. Let me clarify, I have no idea of even where to start, All I have at the moment (for the pins) is my variable, but I'm not even sure if that's correct. Any help would be much appreciated!! What I have...


var MyPins: MKPinAnnotatoinView!


......



override func viewDidLoad() {
super.viewDidLoad()


Mapview code


..... ..... }





Aucun commentaire:

Enregistrer un commentaire