¡@

Home 

2014/10/15 ¤U¤È 10:13:13

iphone Programming Glossary: refreshcontrol

Pull to refresh UITableView without UITableViewController

http://stackoverflow.com/questions/10291537/pull-to-refresh-uitableview-without-uitableviewcontroller

directly to a UITableView without using a UITableViewController use this code void viewDidLoad UIRefreshControl refreshControl UIRefreshControl alloc init refreshControl addTarget self action @selector refresh forControlEvents UIControlEventValueChanged.. a UITableViewController use this code void viewDidLoad UIRefreshControl refreshControl UIRefreshControl alloc init refreshControl addTarget self action @selector refresh forControlEvents UIControlEventValueChanged self.tableView addSubview refreshControl.. addTarget self action @selector refresh forControlEvents UIControlEventValueChanged self.tableView addSubview refreshControl void refresh UIRefreshControl refreshControl refreshControl endRefreshing Note UIRefreshControl is added in iOS6 share..

UIRefreshControl iOS 6 xcode

http://stackoverflow.com/questions/12607015/uirefreshcontrol-ios-6-xcode

this question You can just set it up in your viewDidLoad if you have a UITableViewController UIRefreshControl refreshControl UIRefreshControl alloc init refreshControl addTarget self action @selector refresh forControlEvents UIControlEventValueChanged.. up in your viewDidLoad if you have a UITableViewController UIRefreshControl refreshControl UIRefreshControl alloc init refreshControl addTarget self action @selector refresh forControlEvents UIControlEventValueChanged self.refreshControl refreshControl Then.. alloc init refreshControl addTarget self action @selector refresh forControlEvents UIControlEventValueChanged self.refreshControl refreshControl Then you can do your refresh stuff here void refresh do something here to refresh. share improve this answer..