0

I currently have a UIViewController that has two UIViews, hiding and un-hiding them via segmentedControl. I want to be able to implement the pull-to-refresh feature, which is easy if I had a UITableViewController. But I don't have that right now, so am pretty lost as to what to do.

This obviously will give me errors because UIViewController doesn't have a refreshControl

UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.tintColor = [UIColor magentaColor];
self.refreshControl = refreshControl;

Thanks for any help!

Alex Cio
  • 6,014
  • 5
  • 44
  • 74
Angela
  • 11
  • 1
  • 3
  • 1
    try this http://stackoverflow.com/questions/12497940/uirefreshcontrol-without-uitableviewcontroller – BhushanVU Apr 03 '13 at 06:24
  • Thanks so much! I couldn't really find any solutions on my own, but yeah that answered my question. – Angela Apr 03 '13 at 16:52

1 Answers1

-1

UIRefreshControl can only used in UITableViewController Class.

Oliver
  • 139
  • 1
  • 3