Gagan Singh
Gagan Singh

Reputation: 986

What would be the best way to simulate the animation on the iPhones home screen?

I have two view controllers and i can manage the right to left animation between them via a custom segue, but what would be the best way to have the incoming VC animate with the finger, kind of like how the home screen on the iphone works?

If this is confusing, I mean to say when you drag your finger right to left on the iPhones home screen, there is a point while you are dragging with your finger where you can see the right half of the first view, and the left half of the second view, the natural action of 'dragging' the 2nd view onto the screen.

Thanks in advance

Upvotes: 0

Views: 129

Answers (3)

Mateus
Mateus

Reputation: 2668

If i understood right,you can easily achieve this effect by adding your tableviews to a UIScrollView with pagination enabled.Check this tutorial,tutorial

Upvotes: 0

timzilla
timzilla

Reputation: 94

I've seen it described that functionality that resembles the springboard (iphone home screen) is not really separate view controllers, but a single, wide view.

So for the functionality you want to implement, you might want to think about approaching it differently, with a single view controller to swipe between the two.

Upvotes: 2

vodkhang
vodkhang

Reputation: 18741

You can try with Page Control, here are some tutorials you may like looking at: - Cocoa with Love - Page Control

Upvotes: 1

Related Questions