Good Evening!
I have a specific question about Xcode (Swift) and the TabelView Layout.
My App has until now 1 View within a Container in this Container is a UITableViewController embeded which shows a nice static table view.
My mistake is how I can register when a User click on one of this table view cells?
The method:
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
//CODE TO BE RUN ON CELL TOUCH
}
doesnt work for me - the method is not called, an alert inside of this method is not shown.
Perhaps a false file structure? In my main storyboard I connected a Swift file with the UITableViewController which is inside of the container of the main view controller. Code of the File ist the basic:
import UIKit
class test: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
How can I register when a User click on a TableViewCell? For example showing an alert?
Please help me, I'm really new in iOS development.
Thanks!
Here are two pictures of my project-structure: