|
@@ -68,6 +68,9 @@
|
|
|
|
|
|
_tableView.delegate = self;
|
|
|
_tableView.dataSource = self;
|
|
|
+ _tableView.emptyDataSetDelegate = self;
|
|
|
+ _tableView.emptyDataSetSource = self;
|
|
|
+
|
|
|
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
|
|
|
_tableView.backgroundColor = [UIColor clearColor];
|
|
|
|
|
@@ -102,6 +105,42 @@
|
|
|
[super didReceiveMemoryWarning];
|
|
|
}
|
|
|
|
|
|
+#pragma --------------------------------------------------------------------------------------------
|
|
|
+#pragma mark ==== DZNEmptyDataSetSource ====
|
|
|
+#pragma --------------------------------------------------------------------------------------------
|
|
|
+
|
|
|
+- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
+{
|
|
|
+ return 0.0f;
|
|
|
+}
|
|
|
+
|
|
|
+- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
+{
|
|
|
+ return [UIColor whiteColor];
|
|
|
+}
|
|
|
+
|
|
|
+- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
+{
|
|
|
+ NSString *text = [NSString stringWithFormat:@"%@", @""];
|
|
|
+
|
|
|
+ NSDictionary *attributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:20.0f], NSForegroundColorAttributeName:COLOR_BRAND};
|
|
|
+
|
|
|
+ return [[NSAttributedString alloc] initWithString:text attributes:attributes];
|
|
|
+}
|
|
|
+
|
|
|
+- (NSAttributedString *)descriptionForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
+{
|
|
|
+ NSString *text = [NSString stringWithFormat:@"\n%@", NSLocalizedString(@"_no_transfer_", nil)];
|
|
|
+
|
|
|
+ NSMutableParagraphStyle *paragraph = [NSMutableParagraphStyle new];
|
|
|
+ paragraph.lineBreakMode = NSLineBreakByWordWrapping;
|
|
|
+ paragraph.alignment = NSTextAlignmentCenter;
|
|
|
+
|
|
|
+ NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:14.0], NSForegroundColorAttributeName: [UIColor lightGrayColor], NSParagraphStyleAttributeName: paragraph};
|
|
|
+
|
|
|
+ return [[NSAttributedString alloc] initWithString:text attributes:attributes];
|
|
|
+}
|
|
|
+
|
|
|
#pragma --------------------------------------------------------------------------------------------
|
|
|
#pragma mark - ===== Progress & Task Button =====
|
|
|
#pragma --------------------------------------------------------------------------------------------
|