0
我用MySQL-DB
的數據填充我的UITableView
。顯示空的UITableView
如果我的表沒有任何條目,我想顯示一個空的表視圖。
我可以做這種方式:
- (UITableView *)returnNumberOfRowsForSection { (=> Pseudocode)
if (Table is empty) {
return 0;
} else {
return (Entry Count);
}
}
好吧,是的,你可以...發現了錯誤。 – DAS
發佈它作爲答案! – esqew
假設一堆關於僞代碼的含義以及您將要替換的東西,當然。爲什麼不嘗試真正的代碼,看看它是怎麼回事? :) –