Skip to content

Commit

Permalink
Fix a crash when childControllersCout == 0
Browse files Browse the repository at this point in the history
Signed-off-by: wangmchn <wangmchn@163.com>
  • Loading branch information
wangmchn committed May 28, 2016
1 parent a05b50c commit 5243a28
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PageController/PageController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public class PageController: UIViewController, UIScrollViewDelegate, MenuViewDel

override public func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
guard childControllersCount > 0 else { return }
postFullyDisplayedNotificationWithIndex(_selectedIndex)
didEnterController(currentViewController!, atIndex: _selectedIndex)
}
Expand Down
Binary file not shown.

0 comments on commit 5243a28

Please sign in to comment.