2014-03-12 103 views

回答

3

的TableViewSource類覆蓋內部此方法

public override void WillDisplay (UITableView tableView, UITableViewCell cell, NSIndexPath  indexPath) 
    { 

     if (indexPath.Row == tableItems.Count - 1) { 
      //Reload your data here 
     } 
    } 
2

構造TableViewSource類

isScrolling = false; 

的TableViewSource類覆蓋內部此方法

public override void Scrolled (UIScrollView scrollView) 
    { 
     // load more bottom 
     float height = scrollView.Frame.Size.Height; 
     float distanceFromBottom = scrollView.ContentSize.Height - scrollView.ContentOffset.Y; 
     if(distanceFromBottom < height && isScrolling == false) 
     { 
      // reload data here 
     } 
    }