News for hackers. Stuff that matters.
Re:This year's iPhone design trend: Side navigation by allwein on Thursday August 30, 2012 @09:54AM (#4454622)
It's actually really simple. There's actually two different modes, but they're accomplished the same way. One is that menu is off screen and slides in to overlap the normal view. The second is the the view is in the background, and the normal view slides off to reveal the menu.

In both cases, you simply have a front view and a rear view. All you need to do is adjust the frame (positioning) of one of the views and animate that transition. Animating view transitions is really easy in iOS. So the pseudo code for this basically becomes:

Menu.position.x = Menu.position.x + (.7*screensize);

Animate();

Re:This year's iPhone design trend: Side navigation by freehunter on Thursday August 30, 2012 @10:00AM (#4454658)
Yeah, I was wondering more if this was baked-in, or if there was a framework handling it, or if someone just saw another developer doing it and everyone decided it looked nice and implemented it on their own. They all look incredibly similar.
Re:This year's iPhone design trend: Side navigation by jcromartie on Thursday August 30, 2012 @10:27AM (#4454782)
Come on, there's a little more to it than that... nested view controllers and all.