locked
UITableView RefreshControl - Pull to refresh RRS feed

  • Question

  • User15416 posted

    Does anyone know of a good example for implementing "pull to refresh" functionality? I'm having trouble subscribing to the RefreshControl.ValueChanged method.

    I've got a UITableViewController and I enabled refresh so when I pull down on the table a progress ring appears indicating that the refresh has begun. I've created an outlet for the RefreshControl named refreshControl and am attempting to subscribe to the ValueChanged event as such:

    this.refreshControl.ValueChanged += refreshControl_ValueChanged;

    I've also tried a similar approach using a lambda function but that doesn't work either. Am I missing something?

    Thanks

    Tuesday, July 9, 2013 10:21 PM

All replies

  • User9 posted

    There's an example of using the RefreshControl here: https://github.com/conceptdev/MonkeySpace/blob/master/iOS/TabHome/HomeViewController.cs#L134

    Wednesday, July 10, 2013 12:16 PM
  • User15416 posted

    Got it working, thank you!

    Wednesday, July 10, 2013 5:34 PM
  • User67243 posted

    var refresh = new UIRefreshControl(); refresh.AddTarget(notificationHandler, UIControlEvent.ValueChanged); EbinderTableView.AddSubview(refresh);

    Friday, September 16, 2016 7:36 PM
  • User269756 posted

    is there any way to bind it in bottom of the table view

    Wednesday, November 16, 2016 4:39 PM