Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 1.61 KB

CHANGELOG.md

File metadata and controls

25 lines (21 loc) · 1.61 KB

[2.4.3 BUGFIXS

Remove observer / Cancel performSelector when dealloc.

-initWithNib supoort.

FIX #286, Layout Stragety adjusted.

  • Now: WMPageController will layout every time when -viewDidLayoutSubviews called.
  • Before: Early returned if self.view.frame.size.height is not changed.

[IMPORTANT] WMPAGECONTROLLER ARE NO LONGER ADAPT VIEW'S FRAMES & SOME GESTURES CONFLICTS!!

[DELETE] Some properties have been deleted.

  • viewFrame / menuHeight / menuBGColor / menuViewBottomSpace / otherGestureRecognizerSimultaneously

[ADD] Two datasource methods have been added.

  • -pageController:preferredFrameForMenuView:
  • -pageController:preferredFrameForContentView:

[GUIDE]

  • If you want a right frame of menuView or contentView, implement -pageController:preferredFrameForMenuView: & -pageController:preferredFrameForContentView: methods and give WMPageController a right frame.
  • Call -forceLayoutSubViews to re-layout view's frames, these will recall the datasource methods above.
  • Change menuView's backgroundColor by setting self.menuView.backgroundColor = perferredColor directly.(AFTER THE VIEW IS LOADED, e.g. in viewDidLoad)
  • Deal gesture's conflicts by implement UIGestureRecognizerDelegate IF NEEDED, see UIGestureRecognizerDelegate for more information.

OLD VERSION & NO LONGER MAINTAIN