iOS开发常用的第三方类库
[weakSelf insertRowAtTop];
}];
// 设置上拉加载更多
[self.tableView addInfiniteScrollingWithActionHandler:^{
[weakSelf insertRowAtBottom];
}];
}
- (void)viewDidAppear:(BOOL)animated {
[tableView triggerPullToRefresh];
}
- (void)insertRowAtTop {
// 获取数据....
// 停止动画
[self.tableView.pullToRefreshView stopAnimating];
}
- (void)insertRowAtBottom {
// 获取数据....
// 停止动画
[weakSelf.tableView.infiniteScrollingView stopAnimating];
}
CMPopTipView 提示信息
GitHub:https://github.com/chrismiles/CMPopTipView
CMPopTipView用于在一些视图上显示提示信息:
1 2 3 4 5 6 7 8 9 10 | self.tipView = [[CMPopTipView alloc] initWithMessage:@提示消息]; self.tipView.delegate = self; [self.tipView presentPointingAtView:anyButton inView:self.view animated:YES];// 点击按钮显示 [self.tipView presentPointingAtBarButtonItem:barButtonItem animated:YES];// 点击导航栏按钮显示 #pragma mark CMPopTipViewDelegate methods - (void)popTipViewWasDismissedByUser:(CMPopTipView *)popTipView { // 清理资源 self.tipView = nil; } |
PrettyKit
GitHub:https://github.com/vicpenap/PrettyKit

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW
或用微信扫描左侧二维码