|
|
@@ -25,6 +25,20 @@
|
|
|
return emptyView;
|
|
|
}
|
|
|
|
|
|
++ (instancetype)emptyViewWithTitle:(NSString *)title clickHandler:(void(^)(id sender))handler {
|
|
|
+
|
|
|
+ RAEmptyView *emptyView = [RAEmptyView new];
|
|
|
+ emptyView.tapEmptyBlk = handler;
|
|
|
+
|
|
|
+ emptyView.tipLabel.text = title;
|
|
|
+
|
|
|
+ [emptyView.tipLabel sizeToFit];
|
|
|
+ CGSize size = emptyView.bounds.size;
|
|
|
+ emptyView.frame = CGRectMake(0, 0, size.width + 10, size.height + 10);
|
|
|
+
|
|
|
+ return emptyView;
|
|
|
+}
|
|
|
+
|
|
|
- (instancetype)init {
|
|
|
|
|
|
if (self = [super init]) {
|