Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

added 2 delegate methods for above/below insertion #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

added 2 delegate methods for above/below insertion #22

wants to merge 3 commits into from

Conversation

boecko
Copy link

@boecko boecko commented Oct 23, 2012

(viewForLeftSidebarAbove, viewForRightSidebarAbove) so you can choose the insertion method.

Now i can can use a drop shadow on the SideBarView

This time the revealedView is slided in synchronized with the main view.

It's implemented just for right side.

Andreas Boeckler added 3 commits October 23, 2012 20:17
…rAbove) so you can choose the insertion method
…ea and slides in.

you have to alter your viewForRightSidebar-method, the controller.view.frame should only be set, when the SideBarViewController is not visible.
e.g
if(self.navigationController.revealedState == JTRevealedStateRight) {
 // not visible as JTRevealedStateRight is the finished state after the animation
        controller.view.frame = CGRectMake(0, viewFrame.origin.y, 180, viewFrame.size.height);
        controller.view.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleHeight;
    }
…RightSidebarStyle create JTRevealedStyle-enum
@jamztang
Copy link
Owner

I am afraid I would like to see there's some way we can keep the original behaviour (the original sidebar keeps at the bottom and not pushing out by default; And use your nice push effect when they enabled that option)

Besides, I can see in current patch users can simply returns JTRevealedStyleMainSticky, then they would be confused because no sidebar would be laid out. I would suggest it should be better encapsulated into following options:

typedef NS_OPTIONS(NSUInteger, JTRevealedStyle) {
    JTRevealedStyleDefault,
    JTRevealedStylePush,
    JTRevealedStyleOnTop
};

Any thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants