Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kahayash authored and kahayash committed Jul 4, 2017
1 parent 7adeeff commit f3c8d7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PagingKit/PagingMenuViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public class PagingMenuViewController: UIViewController {
if let index = index {
collectionView.performBatchUpdates(nil) { [weak self] (_) in
guard let _self = self else { return }
self?.scroll(index: index, percent: 0, animated: false)
self?.delegate?.menuViewController(viewController: _self, didSelect: index, previousPage: 0)
_self.scroll(index: index, percent: 0, animated: false)
_self.scrollDelegate?.menuViewController(viewController: _self, didEndScroll: _self.focusView)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions iOS Sample/iOS Sample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class ViewController: UIViewController {
menuViewController?.register(nib: UINib(nibName: "MenuCell", bundle: nil), forCellWithReuseIdentifier: "identifier")
menuViewController?.registerFocusView(nib: UINib(nibName: "FocusView", bundle: nil))
menuViewController?.reloadDate(startingOn: 3)
contentViewController?.reloadData(with: 3)
}

override func didReceiveMemoryWarning() {
Expand Down

0 comments on commit f3c8d7d

Please sign in to comment.