deveLost
deveLost

Reputation: 1171

iOS : Swipe Gesture Push in one ViewController?

I want to add two swipe gesture. I did the code, and it's running, my text in the viewcontroller change when i touch the screen.

BUT, i want to add a "effect" when the user wants to slide at the next (or the previous) news, because currently, i'm just changing the text.

i tried to add action in the storyboard, to add push on the swipe with the view.

It's running, but there are two problems :

Upvotes: 0

Views: 883

Answers (2)

stellz
stellz

Reputation: 130

Pushing on the navigation controller stack is to the right if you want to go back to opposite direction instead of pushing, you should pop like so: [self.navigationController popViewControllerAnimated:YES]; You could paste some code in your question :)

Upvotes: 0

Stephan Zehnder
Stephan Zehnder

Reputation: 15

If I understood you correctly you might want to use a UIScrollView. This will give you a nice animation. You need a UIScrollView and add two of your ViewControllers as subviews.

Here are links to some ScollView tutorials: Are there any good UIScrollView Tutorials on the net?

Upvotes: 0

Related Questions