草庐IT

UITableViewDataSouce

全部标签

xcode - 无法将 UITableViewDataSouce 和 UITableViewDelegate 设置为 UIViewController

当我尝试将委托(delegate)和数据源设置为UIViewController时,所有在UITableViewController中正常运行的函数都被检测为错误。funcnumberOfSectionsInTableView(tableView:UITableView!)->Int{//#warningPotentiallyincompletemethodimplementation.//Returnthenumberofsections.return1}functableView(tableView:UITableView!,numberOfRowsInSectionsection