Objective-C
テーブルビューのページング処理(最下セルまでスクロールしたら次の○件を自動で取得して表示する) - hachinobuのメモ
RubyMotion
shigemk2/LoadMoreTableViewRubyMotion · GitHub
とりあえず移植だけしてみました。
ハマリどころは、やっぱstartIndicatorのくだりでしょうか。
tableFooterViewのところがどうやってもアレなので、
(何をどうしてもnilしか返ってこない)
そのあたりは無視し、setTableFooterViewにindicatorを突っ込みました。
def startIndicator @indicator.startAnimating # footerFrame = self.tableView.tableFooterView.frame # footerFrame.size.height += 10.0 @indicator.frame.size.height += 10.0 self.tableView.setTableFooterView(@indicator) end