예제 #1
0
 // This method will add the UIRefreshControl to the table view if
 // it is available, ie, we are running on iOS 6+
 void AddRefreshControl()
 {
     if (UIDevice.CurrentDevice.CheckSystemVersion(6, 0))
     {
         // the refresh control is available, let's add it
         RefreshControl = new UIRefreshControl();
         RefreshControl.ValueChanged += async(sender, e) =>
         {
             tableItems.Add(new TableItem("Bulbs")
             {
                 ImageName = "Bulbs.jpg"
             });
             await RefreshAsync();
         };
         useRefreshControl = true;
     }
 }