Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added Subclass Documentation/Headers #37

Merged
merged 8 commits into from
Aug 16, 2013
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'master' into subclass
Conflicts:
	MMDrawerController/MMDrawerController.h
  • Loading branch information
kcharwood committed Aug 16, 2013
commit 81bc7c5d172f556805f32042e1fae0a045ade815
4 changes: 2 additions & 2 deletions MMDrawerController/MMDrawerController.h
Original file line number Diff line number Diff line change
@@ -39,8 +39,8 @@
## How Open/Close Gestures are handled
Two gestures are added to every instance of a drawer controller, one for pan and one for touch. `MMDrawerController` is the delegate for each of the gesture recoginzers, and determines if a touch should be sent to the appropriate gesture when a touch is detected compared with the masks set for open and close gestures and the state of the drawer controller.

##Subclassing MMDrawerController
If you would like to subclass MMDrawerController and you only need to override public methods, you don't need to do anything different. If you would like to use some of the additional methods used under the hood for MMDrawerController, you will need to add the cocoapod subspec "`Subclass`" (`pod 'MMDrawerController/Subclass'`). Your MMDrawerController subclass will also need to import the file "`MMDrawerController+Subclass.h`" in order to have access to the subclass methods only available to MMDrawerController subclasses.
## Integrating with State Restoration
In order to opt in to state restoration for `MMDrawerController`, you must set the `restorationIdentifier` of your drawer controller. Instances of your centerViewController, leftDrawerViewController and rightDrawerViewController must also be configured with their own `restorationIdentifier` (and optionally a restorationClass) if you intend for those to be restored as well. If your MMDrawerController had an open drawer when your app was sent to the background, that state will also be restored.

## What this library doesn't do.
This library is not meant for:
You are viewing a condensed version of this merge commit. You can view the full changes here.