- 1、支持图片、标题、描述、按钮多种组合方式
- 2、支持动态设置显示位置
- 3、自动适配安全区域
- 4、支持自定义视图显示
self.tableView.gk_placeholder = [GKPlaceholder placeholderWithImage:@"message_placeholder" title:nil detail:@"当前页面暂无数据" clickBlock:^{
__strong __typeof(weakSelf) self = weakSelf;
self.tableView.gk_isRefreshing = YES;
[self.tableView.mj_header beginRefreshing];
}];
GKPlaceholder is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'GKPlaceholder'
- 1.0.1 2021.12.02 修复设置detailMaxW无效的bug
GKPlaceholder is available under the MIT license. See the LICENSE file for more info.