library table insets

This commit is contained in:
Chris Li 2016-08-26 15:44:55 -04:00
parent 710cbc50d7
commit e5610a3ec4
3 changed files with 10 additions and 2 deletions

View File

@ -54,6 +54,14 @@ class CloudBooksController: UITableViewController, NSFetchedResultsControllerDel
}
}
override func traitCollectionDidChange(previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
let tabbarHeight = tabBarController?.tabBar.frame.height ?? 50
let inset = UIEdgeInsetsMake(tableView.contentInset.top, 0, tabbarHeight, 0)
tableView.contentInset = inset
tableView.scrollIndicatorInsets = inset
}
// MARK: - Actions
func showLanguageFilter() {

View File

@ -49,7 +49,7 @@
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.7.1353</string>
<string>1.7.1357</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>

View File

@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.7.1627</string>
<string>1.7.1631</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionMainStoryboard</key>