From 3acc1ddf08d7b26204ca70ce2a2f3e7dd7873bf3 Mon Sep 17 00:00:00 2001 From: Chris Li Date: Tue, 30 Aug 2016 15:04:45 -0400 Subject: [PATCH] update project config --- .../Library/CloudBooksController.swift | 8 ++++++-- .../Library/EmptyTableConfigExtension.swift | 6 +++--- Kiwix-iOS/Info.plist | 2 +- Kiwix-iOS/Storyboard/Library.storyboard | 10 +++++----- Kiwix-iOSWidgets/Bookmarks/Info.plist | 2 +- Kiwix.xcodeproj/project.pbxproj | 4 ++-- Podfile | 2 -- Podfile.lock | 19 ++++++++----------- 8 files changed, 26 insertions(+), 27 deletions(-) diff --git a/Kiwix-iOS/Controller/Library/CloudBooksController.swift b/Kiwix-iOS/Controller/Library/CloudBooksController.swift index 8fc72041..4ed5b97c 100644 --- a/Kiwix-iOS/Controller/Library/CloudBooksController.swift +++ b/Kiwix-iOS/Controller/Library/CloudBooksController.swift @@ -26,8 +26,8 @@ class CloudBooksController: UITableViewController, NSFetchedResultsControllerDel override func viewDidLoad() { super.viewDidLoad() - tableView.emptyDataSetSource = self - tableView.emptyDataSetDelegate = self +// tableView.emptyDataSetSource = self +// tableView.emptyDataSetDelegate = self tableView.tableFooterView = UIView() refreshControl = RefreshLibControl() @@ -91,6 +91,10 @@ class CloudBooksController: UITableViewController, NSFetchedResultsControllerDel NSOperationQueue.mainQueue().addOperationWithBlock({ self.refreshControl?.endRefreshing() }) + let t = ReachabilityCondition.Error.NotReachable +// if let error = errors.first { +// guard error == ReachabilityCondition.Error.NotReachable else {return} +// } }) GlobalOperationQueue.sharedInstance.addOperation(operation) } diff --git a/Kiwix-iOS/Controller/Library/EmptyTableConfigExtension.swift b/Kiwix-iOS/Controller/Library/EmptyTableConfigExtension.swift index 26bb66a2..d00019cb 100644 --- a/Kiwix-iOS/Controller/Library/EmptyTableConfigExtension.swift +++ b/Kiwix-iOS/Controller/Library/EmptyTableConfigExtension.swift @@ -12,7 +12,7 @@ import DZNEmptyDataSet extension CloudBooksController { func titleForEmptyDataSet(scrollView: UIScrollView!) -> NSAttributedString! { - let string = NSLocalizedString("", comment: "") + let string = NSLocalizedString("Library is Empty", comment: "") let attributes = [NSFontAttributeName: UIFont.systemFontOfSize(18), NSForegroundColorAttributeName: UIColor.darkGrayColor()] return NSAttributedString(string: string, attributes: attributes) } @@ -21,7 +21,7 @@ extension CloudBooksController { extension DownloadTasksController { func titleForEmptyDataSet(scrollView: UIScrollView!) -> NSAttributedString! { - let string = NSLocalizedString("No task", comment: "") + let string = NSLocalizedString("No Download Tasks", comment: "") let attributes = [NSFontAttributeName: UIFont.systemFontOfSize(18), NSForegroundColorAttributeName: UIColor.darkGrayColor()] return NSAttributedString(string: string, attributes: attributes) } @@ -33,7 +33,7 @@ extension DownloadTasksController { extension LocalBooksController { func titleForEmptyDataSet(scrollView: UIScrollView!) -> NSAttributedString! { - let string = NSLocalizedString("No Local Books", comment: "") + let string = NSLocalizedString("No Local Books on Device", comment: "") let attributes = [NSFontAttributeName: UIFont.systemFontOfSize(18), NSForegroundColorAttributeName: UIColor.darkGrayColor()] return NSAttributedString(string: string, attributes: attributes) } diff --git a/Kiwix-iOS/Info.plist b/Kiwix-iOS/Info.plist index 38a6e0b0..e149d340 100644 --- a/Kiwix-iOS/Info.plist +++ b/Kiwix-iOS/Info.plist @@ -49,7 +49,7 @@ CFBundleVersion - 1.7.1597 + 1.7.1606 ITSAppUsesNonExemptEncryption LSRequiresIPhoneOS diff --git a/Kiwix-iOS/Storyboard/Library.storyboard b/Kiwix-iOS/Storyboard/Library.storyboard index 4c55a0c7..72ad8deb 100644 --- a/Kiwix-iOS/Storyboard/Library.storyboard +++ b/Kiwix-iOS/Storyboard/Library.storyboard @@ -219,7 +219,7 @@ - + @@ -243,10 +243,10 @@ - + - +