@@ -86,9 +86,10 @@ class NCActivity: UIViewController, DZNEmptyDataSetSource, DZNEmptyDataSetDelega
// MARK: DZNEmpty
func verticalOffset(forEmptyDataSet scrollView: UIScrollView!) -> CGFloat {
- return insets.top/2
+ let height = self.tabBarController?.tabBar.frame.size.height ?? 0
+ return -height
}
-
+
func backgroundColor(forEmptyDataSet scrollView: UIScrollView) -> UIColor? {
if filterFileId == nil {
return NCBrandColor.sharedInstance.backgroundView
@@ -127,6 +127,12 @@
#pragma mark ==== DZNEmptyDataSetSource ====
#pragma --------------------------------------------------------------------------------------------
+- (CGFloat)verticalOffsetForEmptyDataSet:(UIScrollView *)scrollView
+{
+ //CGFloat height = self.tabBarController.tabBar.frame.size.height;
+ return 0;
+}
- (UIColor *)backgroundColorForEmptyDataSet:(UIScrollView *)scrollView
{
return NCBrandColor.sharedInstance.backgroundView;
@@ -527,6 +527,12 @@
return YES;
@@ -68,6 +68,11 @@ class NCNotification: UITableViewController, NCNotificationCellDelegate, DZNEmpt
// MARK: - DZNEmpty
+ func verticalOffset(forEmptyDataSet scrollView: UIScrollView!) -> CGFloat {
+ }
@@ -100,9 +100,10 @@
-- (CGFloat)spaceHeightForEmptyDataSet:(UIScrollView *)scrollView
- return 0.0f;
+ CGFloat height = self.tabBarController.tabBar.frame.size.height;
+ return -height;