Jim*_*ynn 5 objective-c parse-platform swift
我正在使用Parse.我试图查询数据库中的对象列表.我正在使用swift编程语言.我认为导致此错误的原因是因为obj-c和swift桥.谁能帮我 ?这是我的代码.
override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
Run Code Online (Sandbox Code Playgroud)
只有第一行有错误.
编辑!它必须是这样的:
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
Run Code Online (Sandbox Code Playgroud)
对于某些代码向后兼容性原因,您可以使用以下内容:
override func tableView(tableView: UITableView?, cellForRowAtIndexPath indexPath: NSIndexPath?) -> UITableViewCell {
Run Code Online (Sandbox Code Playgroud)
只需改变"!" 标有"?"的标志.我正在使用Xcode 6 GM种子.UITableViewDataSource有一些变化.我发现同样的错误,但改变它就像这项工作对我来说......