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
  • 60,018
  • 25
  • 128
  • 167

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
  • 11,539
  • 12
  • 83
  • 141
shivam
  • 136
  • 13