UIAlertController button function not working
问题 let location = CLLocationCoordinate2D(latitude: 32.075300, longitude: 34.782563) @IBAction func DirectionsTolocationButton(_ sender: Any) { // Create the AlertController and add its actions like button in ActionSheet let ActionSheet = UIAlertController(title: "Please Select A Navigation Service.", message: nil, preferredStyle: .actionSheet) let AppleMapsButton = UIAlertAction(title: "Apple Maps", style: .default) { action -> Void in let destinationName = (self.barNameTemplate ) self