I am getting about 10 warning signs letting me know that i should consider using let in place of var in these situations. Let is a constant, where var changes. In this case, would changing to let be the proper decision?
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
var latitude: CLLocationDegrees = 50.0358
var longitute: CLLocationDegrees = 19.1783
var latDelta: CLLocationDegrees = 0.5
var longDelta: CLLocationDegrees = 0.5
var span: MKCoordinateSpan = MKCoordinateSpanMake(latDelta, longDelta)
var location: CLLocationCoordinate2D = CLLocationCoordinate2DMake(latitude, longitute)
var region: MKCoordinateRegion = MKCoordinateRegionMake(location, span)
mapView.setRegion(region, animated: true)
var annotation = MKPointAnnotation()
annotation.coordinate = location
annotation.title = "Auschwiz"
annotation.subtitle = "German Nazi concentration camp."
mapView.addAnnotation(annotation)
var uilpgr = UILongPressGestureRecognizer(target: self, action: "action:")
uilpgr.minimumPressDuration = 2
mapView.addGestureRecognizer(uilpgr)