类似Android的ActionBar-PullToRefresh iOS组件: STZPullToRefresh

jopen 10年前

iOS的UI组件,类似于Android的ActionBar-PullToRefresh。

// Create refresh view  STZPullToRefreshView *refreshView = [[STZPullToRefreshView alloc] initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, 3)];  [self.view addSubview:refreshView];    // Setup PullToRefresh  self.pullToRefresh = [[STZPullToRefresh alloc] initWithTableView:self.tableView                                                       refreshView:refreshView                                                 tableViewDelegate:self];  self.tableView.delegate = self.pullToRefresh;  self.pullToRefresh.delegate = self;   // STZPullToRefreshDelegate

Screenshot

项目主页:http://www.open-open.com/lib/view/home/1404436504780