简体   繁体   中英

Xamarin.ios Refresh Button

I have a UiTableView that I want to reload when a button is clicked inside the navigation bar that looks like a refresh button.

I have the following setup its already connected via action to the display:

    partial void refreshButtonClicked(MonoTouch.Foundation.NSObject sender){


    }

But from here I want to reload the table data. Im stumped, I have tried to use table.Refresh()to no joy and I can not find any literature.

Help much appreciated

You should use table.ReloadData()

Also take a look at Populating a Table with Data

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM