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

Feature/pop off on drag right #40

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

Feature/pop off on drag right #40

wants to merge 15 commits into from

Conversation

fabiosoft
Copy link

No description provided.

Marus and others added 14 commits February 14, 2012 11:56
…w controllers but the first when the user drags the entire stack to the right
…ollers by dragging to the right (pop all, all but first, or top)
… right to get view controllers to pop off instead of a magic number
…is dragging

stackedViewDidStartDragging: - Called when user starts dragging the stack
stackedViewDidStopDragging: - Called when user stops dragging the stack
stackedViewWillPopViewControllers: - Called when the user has dragged the entire stack far enough right that it will trigger the pop off when released (enablePopOffOnDragRight must be set to YES)
stackedViewWillNotPopViewControllers: - Called if the user returns the stack far enough left so that it will no longer trigger the pop off when released (enablePopOffOnDragRight must be set to YES)
…ght feature.

The example now uses the "pop view controller when dragged to the right" feature; it also handles the delegate methods to provide visual feedback to the user similar to the twitter app.

The example uses the SVPopOptionAllButFirst type (functions the same as twitter); this can be changed by changing the value of the popOffType property of the stack controller instance.
…iewControllers that will (or will no longer be) popped.
… so that it doesn't show the animation when no view controllers will be popped off (only one controller in the stack).
…the right so that it doesn't mess up if not starting with a floatIndex of 0.0 (can often start from floatIndex 0.5)
… all cases where floatIndex < 0.5 instead of == 0.0
…f the first view controller in the stack instead of the users drag; makes it much more consistent in behaviour
@steipete
Copy link
Owner

steipete commented Feb 5, 2013

Thanks! You need merge the upstream changes first, before I can merge this.

@fabiosoft
Copy link
Author

how? i am not a github expert....

@steipete
Copy link
Owner

steipete commented Feb 5, 2013

@fabiosoft
Copy link
Author

i've done something...check it out! ;)

@steipete
Copy link
Owner

steipete commented Feb 6, 2013

It's a little trickier than that. You need to pull from my master, then merge all the changes that happened since those commits.

@fabiosoft
Copy link
Author

O.o i think a lot of scary commands for a git noob... :( give me a tutorial to follow step by step or commands to exec... :)

@chrischenyc
Copy link

this feature is really good, can we manage to get it merged back to master?

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.

4 participants