QPFloatDrawerController 0.0.1

QPFloatDrawerController 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.



  • By
  • Quang Pham Cong

Float drawer controller for iOS
Currently, support left drawer only. I will support more features in the future.

alt tag

alt tag

How to use


1. Add to project

  • Add manually by drag folder QPFloatDrawerController into your project also add QuartCore.framework in build phase
  • Add by cocoapods
    pod 'QPFloatDrawerController'

    2. Init

    (see QPAppdelegate in demo app)
    You must init float drawer controller with left and right controller
    Default drawer has float width = 60, and full width = 260


QPFloatDrawerController *floatDrawer = [[QPFloatDrawerController alloc] initWithLeftViewController:leftController rightViewController:rightController];
    self.window.rootViewController = floatDrawer;


3. Float drawer UIViewController category

You can call self.floatDrawerController to access the float drawer

4. Reveal toggle

You can show or hide right view by calling method:


[self.floatDrawerController revealToggleAnimated:YES];


5. Pan gesture

You can add pan gesture to any view to reveal right view


[self.view addGestureRecognizer:self.floatDrawerController.panGestureRecognizer];


6. Change float width or full width

Change float width or full width by calling methods:

self.floatDrawerController.leftFloatWidth = 100.0f;
self.floatDrawerController.leftFullWidth = 320.0f;

Conclusion

Some features will develop in the future. Please let's me know what you want in this control. Thanks!