Alex Kraev
Alex Kraev

Reputation: 222

How to not fully hide menu using ECSlidingViewController?

Am using ECSlidingViewController class to show sliding menu=) i want show always a part of menu. Question is how to not fully hide menu?

Upvotes: 3

Views: 1056

Answers (2)

Michael Enriquez
Michael Enriquez

Reputation: 2520

This is not supported by ECSlidingViewController v1. The internal calculations for animating the top view rely on the top view occupying the full width of the screen.

If you upgrade to ECSlidingViewController 2 (iOS 7 only), you can customize the layout.

Upvotes: 1

SukruK
SukruK

Reputation: 560

If you want to make full left screen use this :

[self.slidingViewController setAnchorRightRevealAmount:320.0f];
 self.slidingViewController.underLeftWidthLayout = ECFullWidth;

for right screen :

[self.slidingViewController setAnchorLeftPeekAmount:0.0f];
 self.slidingViewController.underRightWidthLayout = ECVariableRevealWidth;

Upvotes: 1

Related Questions