亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

swift UITableView的使用方法?

swift UITableView的使用方法?

富國滬深 2018-08-15 10:14:19
查看完整描述

2 回答

?
蝴蝶不菲

TA貢獻1810條經驗 獲得超4個贊

解決辦法:因為UITableView的一些協議沒有實現

查看完整回答
反對 回復 2018-08-19
?
暮色呼如

TA貢獻1853條經驗 獲得超9個贊

你必須實現這幾個協議的required方法

func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {

    return 10

}

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    let cell = tableView.dequeueReusableCellWithIdentifier("cell")

    return cell!

}


查看完整回答
反對 回復 2018-08-19
  • 2 回答
  • 0 關注
  • 1069 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號