Skip to content

Commit 5e2604e

Browse files
author
Artem Sidorenko
committed
Add TODO in code with explanations in menuViewController for bug with background color
1 parent d9906af commit 5e2604e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

MenuExample/Controller/MenuViewController.swift

+3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ class MenuViewController: UITableViewController {
1919
override func viewWillAppear(animated: Bool) {
2020
super.viewWillAppear(animated)
2121

22+
// For some reason iOS9 ignore background color for this VC when it set from storyboard. With white background animation looks ugly...
23+
// TODO: Try to remove it after iOS9 release.
2224
self.view.backgroundColor = UIColor.clearColor()
25+
2326
let indexPath = NSIndexPath(forRow: selectedItem, inSection: 0)
2427
tableView.selectRowAtIndexPath(indexPath, animated: false, scrollPosition: .None)
2528
}

0 commit comments

Comments
 (0)