|
@@ -137,22 +137,22 @@
|
|
|
#pragma mark ==== DZNEmptyDataSetSource ====
|
|
|
#pragma --------------------------------------------------------------------------------------------
|
|
|
|
|
|
-- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView
|
|
|
+- (BOOL)emptyDataSetShouldDisplay:(UIScrollView *)scrollView
|
|
|
{
|
|
|
if (_loadingFolder)
|
|
|
- return NO;
|
|
|
- else
|
|
|
return YES;
|
|
|
+ else
|
|
|
+ return NO;
|
|
|
}
|
|
|
|
|
|
-- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
+- (BOOL)emptyDataSetShouldAllowScroll:(UIScrollView *)scrollView
|
|
|
{
|
|
|
- return [UIColor whiteColor];
|
|
|
+ return NO;
|
|
|
}
|
|
|
|
|
|
-- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
+- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
{
|
|
|
- return [CCGraphics changeThemingColorImage:[UIImage imageNamed:@"filesNoFiles"] color:[NCBrandColor sharedInstance].brand];
|
|
|
+ return [UIColor whiteColor];
|
|
|
}
|
|
|
|
|
|
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView
|
|
@@ -170,15 +170,6 @@
|
|
|
return nil;
|
|
|
}
|
|
|
|
|
|
-- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView
|
|
|
-{
|
|
|
- NSString *text = [NSString stringWithFormat:@"%@", NSLocalizedString(@"_files_no_files_", nil)];
|
|
|
-
|
|
|
- NSDictionary *attributes = @{NSFontAttributeName:[UIFont boldSystemFontOfSize:20.0f], NSForegroundColorAttributeName:[UIColor lightGrayColor]};
|
|
|
-
|
|
|
- return [[NSAttributedString alloc] initWithString:text attributes:attributes];
|
|
|
-}
|
|
|
-
|
|
|
// MARK: - IBAction
|
|
|
|
|
|
- (IBAction)cancel:(UIBarButtonItem *)sender
|