手势
dodoloov4u
这个作者很懒,什么都没留下…
展开
-
iOS7右划返回
iOS 7中在传统的左上角返回键之外,提供了右滑返回上一级界面的手势。支持此手势的是UINavigationController中新增的属性interactivePopGestureRecognizer,即右滑返回只支持以UINavigationController为容器的ViewController间切换,要想在自定义容器中使用,需要一些额外的工作。基本地,控制ViewContr转载 2014-04-09 09:35:42 · 1242 阅读 · 0 评论 -
绘图各种图
首先了解一下CGContextRef:An opaque type that represents a Quartz 2D drawing environment.Graphics Context是图形上下文,可以将其理解为一块画布,我们可以在上面进行绘画操作,绘制完成后,将画布放到我们的view中显示即可,view看作是一个画框.自己学习时实现的demo,希望对大家有转载 2014-03-04 17:48:12 · 427 阅读 · 0 评论 -
在iOS上增加手势锁屏、解锁功能
原文转自:http://blog.csdn.net/jasonblog/article/details/8024674在一些涉及个人隐私的场景下,尤其是当移动设备包含太多私密信息时,为用户的安全考虑是有必要的。桌面版的QQ在很多年前就考虑到用户离开电脑后隐私泄露的危险,提供了“离开电脑自动锁定”或者“闲置锁定”等类似功能,具体我也忘了。而在iPhone版的QQ上,也提供了手转载 2014-02-17 09:49:40 · 934 阅读 · 0 评论 -
绘图(Drawing)
0 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文1 CGContextMoveToPoint 开始画线2 CGContextAddLineToPoint 画直线4 CGContextAddEllipseInRect 画一椭圆4 CGContextSetLineCap 设置线条终点形状4 CGCon转载 2014-02-24 10:48:38 · 541 阅读 · 0 评论 -
自动旋转和调整大小
IPhone的自动旋转功能一共有3中方法:1.使用自动调整属性处理旋转。利用系统自动生成的代码。- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientation转载 2014-04-01 18:01:49 · 460 阅读 · 0 评论 -
iOS响应上下左右划动手势
-(void)viewDidLoad{UISwipeGestureRecognizer *recognizer; recognizer = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(handleSwipeFrom:)]; [recognizer setDirec转载 2014-02-24 10:20:13 · 603 阅读 · 0 评论 -
在iOS中使用手指简单画线
原文转自:http://blog.csdn.net/jasonblog/article/details/8024014这个画线功能主要是为了辅助在iOS中支持手势锁屏的功能,哪位知道有现成的GestureLock项目的,求分享。[cpp] view plaincopy@interface ViewController ()转载 2014-02-17 09:53:18 · 736 阅读 · 0 评论