XCode6/Swift: unrecognized selector sent to instance

后端 未结 3 1021
北恋
北恋 2021-02-15 10:58

Thought I\'d try my hand at iOS development since the Swift/ios8 announcement and I\'m having trouble getting a basic tableView to build.

Currently getting the following

3条回答
  •  别那么骄傲
    2021-02-15 11:47

    Change your code to:

    override func tableView(tableView: UITableView?, numberOfRowsInSection section: Int) -> Int {
    
        // Return the number of rows in the section.
        return 10
    }
    

提交回复
热议问题