mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-26 05:18:31 -04:00
commit
This commit is contained in:
parent
b094869110
commit
604013e247
@ -20,18 +20,10 @@ class SearchBaseTableController: CoreDataTableBaseController, DZNEmptyDataSetSou
|
||||
|
||||
override func viewWillDisappear(_ animated: Bool) {
|
||||
super.viewWillDisappear(animated)
|
||||
tableView.emptyDataSetSource = nil
|
||||
tableView.emptyDataSetDelegate = nil
|
||||
NotificationCenter.default.removeObserver(self, name: .UIKeyboardDidShow, object: nil)
|
||||
NotificationCenter.default.removeObserver(self, name: .UIKeyboardWillHide, object: nil)
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
super.viewDidAppear(animated)
|
||||
tableView.emptyDataSetSource = self
|
||||
tableView.emptyDataSetDelegate = self
|
||||
}
|
||||
|
||||
func keyboardDidShow(notification: Notification) {
|
||||
guard let userInfo = notification.userInfo as? [String: NSValue],
|
||||
let origin = userInfo[UIKeyboardFrameEndUserInfoKey]?.cgRectValue.origin else {return}
|
||||
|
@ -27,6 +27,8 @@ class SearchBooksController: SearchBaseTableController, UITableViewDelegate, UIT
|
||||
super.viewWillAppear(animated)
|
||||
tableView.reloadData()
|
||||
configureRecentSearchBarHeight()
|
||||
tableView.emptyDataSetSource = self
|
||||
tableView.emptyDataSetDelegate = self
|
||||
}
|
||||
|
||||
func configureRecentSearchBarHeight() {
|
||||
|
@ -49,7 +49,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.3843</string>
|
||||
<string>1.8.3845</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.3861</string>
|
||||
<string>1.8.3863</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionMainStoryboard</key>
|
||||
|
Loading…
x
Reference in New Issue
Block a user