Simple UITableView in Swift - unexpectedly found nil

后端 未结 13 1584
旧巷少年郎
旧巷少年郎 2020-12-06 00:38

Pretty simple code:

func numberOfSectionsInTableView(tableView: UITableView?) -> Int {
    return 1
}

func tableView(tableView:UITableView!, numberOfRows         


        
13条回答
  •  既然无缘
    2020-12-06 01:28

    I am getting this error whenever I use reuse Identifer name different than the custom class name unifid those names solve it for me

提交回复
热议问题