Hey there,
I have the following problem:
I created a view named "View Controller" with a Segue to "Über View Controller".
Now in "Über View Controller" I have a bar button item with the system item "Cancel". From this item I created an Action to "UeberViewController.swift".
Source code of the file is the following:
import UIKit
class UeberViewController: UIViewController {
@IBAction func Done(_ sender: Any) {
dismiss(animated: true, completion: nil)
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}
Now the problem:
The dismiss-action does not work. If I tap on the button nothing happens...
Anyone an idea what to do?