实现IOS版的抽屉效果(点击,拖拽滑动)
摘要:
好像最近,看到好多Android上的抽屉效果,也忍不住想要自己写一个。在Android里面可以用SlidingDrawer,很方便的实现。IOS上面就只有自己写了。其实原理很简单就是 UIView 的移动,和一些手势的操作。 1 // 2 // DrawerView.h 3 // DrawerDemo 4 // 5 // Created by Zhouhaifeng on 12-3-27. 6 // Copyright (c) 2012年 CJLU. All rights reserved. 7 // 8 9 #import <UIKit/UIKit.h>10 11 typedef 阅读全文