iOS: flipboard right panel effect

具体见

http://stackoverflow.com/questions/10809575/flipboard-ipad-app-right-menu-panel-slide-effect


现在用的solution就是添加一个sub view for panel到main view,而该sub view作为一个view container,来包含要在该panel显示的view,然后通过animation来实现view切换。

几个注意的问题:

1. 如何使得点panel以外的区域就隐藏panel,用一个dimming layer (uiview or uiimageview)

2. 用animation来模拟navigation controller效果来切换view。

注意:by default, 在uiview A内的sub view B,如果sub view B的位置在uiview A的bound之外,依然会显示出来。如果要不显示,则要把uiview A的clipsTobounds属性设置为Yes. (ref link: http://hi.baidu.com/marktian/blog/item/395adc24e7b39d2ec995597f.html)



你可能感兴趣的:(ios,animation,UIView,layer)