Skip to content

Commit

Permalink
投稿詳細で表示調整
Browse files Browse the repository at this point in the history
一瞬したに黒帯が見きれる問題
  • Loading branch information
anzfactory committed Mar 5, 2015
1 parent 734bba7 commit 0e576cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion QiitaCollection/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@
<!--Entry Detail View Controller-->
<scene sceneID="z0O-1e-VJN">
<objects>
<viewController storyboardIdentifier="EntryDetailVC" id="Kjw-s4-AKn" customClass="EntryDetailViewController" customModule="QiitaCollection" customModuleProvider="target" sceneMemberID="viewController">
<viewController storyboardIdentifier="EntryDetailVC" automaticallyAdjustsScrollViewInsets="NO" id="Kjw-s4-AKn" customClass="EntryDetailViewController" customModule="QiitaCollection" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="avs-Gr-bbH"/>
<viewControllerLayoutGuide type="bottom" id="CqE-ve-w7z"/>
Expand Down
11 changes: 6 additions & 5 deletions QiitaCollection/EntryDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ class EntryDetailViewController: BaseViewController {
// MARK: ライフサイクル
override func viewDidLoad() {
super.viewDidLoad()
self.automaticallyAdjustsScrollViewInsets = false

// したに固定メニューボタンがあるんで、bottom padding をセットしておく
self.webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 44.0, 0)

}
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
Expand All @@ -49,6 +44,12 @@ class EntryDetailViewController: BaseViewController {
self.refresh()
}

override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
// したに固定メニューボタンがあるんで、bottom padding をセットしておく
self.webView.scrollView.contentInset.bottom = 44.0
}


// MARK: メソッド
override func publicMenuItems() -> [PathMenuItem] {
Expand Down

0 comments on commit 0e576cd

Please sign in to comment.