#define screenW [UIScreen mainScreen].bounds.size.width #import "ViewController.h" @interface ViewController () @property (nonatomic,strong)UIView * r
分类:
移动开发 时间:
2016-01-28 17:22:52
阅读次数:
151
ios开发中,展示类应用通常要用到抽屉效果,由于项目需要,本人找到一个demo,缩减掉一些不常用的功能,整理出一个较短的实例。
首先需要给工程添加第三方类库
MMDrawerController:
这里讲的实例只加入了左滑抽屉。右滑和左滑只是初始化时多添加一个右视图控制器,其他方法基本相同。...
分类:
移动开发 时间:
2015-10-27 13:29:35
阅读次数:
193
抽屉效果在iOS中很多应用都用到了抽屉效果,例如腾讯的QQ,百度贴吧…
1. 最终效果如下图所示
2.实现步骤1.开始启动的时候,新建3个不同颜色的View的1.设置3个成员属性,记录三种颜色的View@property (nonatomic,weak) UIView* redView;
@property (nonatomic,weak) UIView* greenView;
@propert...
分类:
移动开发 时间:
2015-07-13 22:28:12
阅读次数:
179
iOS抽屉效果和侧边菜单源码下载地址1、效果演示1. 抽屉效果演示1. 侧边菜单演示2、使用说明构造方法 initialization/// 构造方法(左控制器 & 右控制器 & 背景图片)
-(instancetype)initWithLeftController:(UIViewController *)leftController
andMainContr...
分类:
移动开发 时间:
2015-06-14 12:28:23
阅读次数:
236
1, Ios左右菜单PPRevealSideviewController使用的一些心得 代码编写http://blog.csdn.net/qjlhlh/article/details/82045632 stoaryBoard编写iOS抽屉效果的demohttp://cache.baidu...
分类:
其他好文 时间:
2015-05-21 21:44:27
阅读次数:
172
1, Ios左右菜单PPRevealSideviewController使用的一些心得 代码编写http://blog.csdn.net/qjlhlh/article/details/82045632 stoaryBoard编写iOS抽屉效果的demohttp://cache.baidu...
分类:
其他好文 时间:
2015-05-21 19:25:33
阅读次数:
154
猫猫分享,必须精品素材代码地址:http://download.csdn.net/detail/u013357243/8635679
原创文章,欢迎转载。转载请注明:翟乃玉的博客
地址:http://blog.csdn.net/u013357243?viewmode=contents先看效果源码NYDrawViewController.h
//
// NYDrawViewController...
分类:
移动开发 时间:
2015-04-27 09:47:37
阅读次数:
231
猫猫分享,必须精品素材代码地址:http://download.csdn.net/detail/u013357243/8614731
原创文章,欢迎转载。转载请注明:翟乃玉的博客
地址:http://blog.csdn.net/u013357243?viewmode=contents先看效果实现过程第一步,把三个view设置好,还有颜色#warning 第一步
- (void)addChil...
分类:
移动开发 时间:
2015-04-27 09:47:33
阅读次数:
237
原创Blog,转载请注明出处
blog.csdn.net/hello_hwc
先看看Demo效果
视频链接如下
http://v.youku.com/v_show/id_XODc1OTQwODQ0.html
实现过程如下
1 新建一个基于单视图的工程。拖入两个ViewController,为了区分,在大纲中改为firstViewController 和 SecondViewCo...
分类:
移动开发 时间:
2015-01-21 22:33:04
阅读次数:
242
抽屉效果功能实现
一、.h文件
@interfaceHMDrawViewController:UIViewController@property(nonatomic,weak,readonly)UIView*mainView;@property(nonatomic,weak,readonly)UIView*leftView;@property(nonatomic,weak,readonly)UIView*rightView;@end
二、.m文件
@in..
分类:
移动开发 时间:
2014-12-03 02:00:45
阅读次数:
281