Skip to content
This repository
Browse code

Merge branch 'master' of github.com:ipup/PPRevealSideViewController

  • Loading branch information...
commit 6416477ab80b4047e5dfc76ad22573661684cb8e 2 parents 4912db7 + c780587
Marian Paul ipodishima authored

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. +6 2 README.md
8 README.md
Source Rendered
@@ -93,6 +93,7 @@ If you want to pop a new center controller, then do the following :
93 93 [self.revealSideViewController setDirectionsToShowBounce:PPRevealSideDirectionLeft | PPRevealSideDirectionRight];
94 94
95 95 You could also don't want these animations at all. Disabled these like it
  96 +
96 97 [self.revealSideViewController setDirectionsToShowBounce:PPRevealSideDirectionNone];
97 98
98 99 ## Pushing from a side
@@ -125,16 +126,19 @@ If you have some view whith pan gestures already configured, you have several op
125 126 Remember that, for the UIWebView for example, the best thing to do is to fit the width on the screen, and disabled zooming. This is typically what you would do on a mobile aware web page.
126 127
127 128 1. Disable the panning gesture on the content view
128   - self.revealSideViewController.panInteractionsWhenClosed = PPRevealSideInteractionNavigationBar;
129   - self.revealSideViewController.panInteractionsWhenOpened = PPRevealSideInteractionNavigationBar;
  129 +
  130 + self.revealSideViewController.panInteractionsWhenClosed = PPRevealSideInteractionNavigationBar;
  131 + self.revealSideViewController.panInteractionsWhenOpened = PPRevealSideInteractionNavigationBar;
130 132
131 133 2. Implement the delegate method
  134 +
132 135 - (PPRevealSideDirection)pprevealSideViewController:(PPRevealSideViewController*)controller directionsAllowedForPanningOnView:(UIView*)view {
133 136
134 137 if ([view isKindOfClass:NSClassFromString(@"UIWebBrowserView")]) return PPRevealSideDirectionLeft | PPRevealSideDirectionRight;
135 138
136 139 return PPRevealSideDirectionLeft | PPRevealSideDirectionRight | PPRevealSideDirectionTop | PPRevealSideDirectionBottom;
137 140 }
  141 +
138 142 3. In the case you do not have controllers on all sides, you can also disable the bouncing animation which show that there is no controller.
139 143
140 144 ## Options

0 comments on commit 6416477

Please sign in to comment.
Something went wrong with that request. Please try again.