0

i have viewController, and there are one tableView, where i want to add pull to refresh, but it havent got propertyrefreshConroller, what i need to do?

nhgrif
  • 61,578
  • 25
  • 134
  • 173

1 Answers1

1

For your kind of information Apple does't release refreshControl in its object library. you can simply add this by using few simple lines:

UIRefreshControl *refresher=[[UIRefreshControl alloc] init]; 
[refresher addTarget:self
              action:@selector(refreshData)
    forControlEvents:UIControlEventValueChanged];

[tableView addSubview:refresher];

Where refreshData is your target method do whatever you want to do there.

Stunner
  • 12,025
  • 12
  • 86
  • 145
shivam
  • 136
  • 13