欢迎使用CSDN-markdown编辑器
2016-01-06 14:40
721 查看
``` //系统使用,如电量低,突然来 -(void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event{ NSLog(@"触摸取消"); } 一摇开始 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ - NSLog(@"摇一摇开始"); self.view.backgroundColor = [UIColor colorWithRed:arc4random()%256 / 255.0 green:arc4random()%256 / 255.0 blue:arc4random()%256 / 255.0 alpha:1.0]; } //摇一摇结束 - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event{ NSLog(@"摇一摇结束"); } //摇一摇取消 - (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event{ }
“`
相关文章推荐
- Google SRE (DevOps)
- 不只是给面试加分 -- Java WeakReference的理解与使用
- @MappedSuperclass注解的使用说明
- Android App框架设计之编写基类BaseActivity
- attachEvent和addEventListener区别总结
- shell记录
- MAC查看端口占用
- Android开发学习之路-GSON使用心得(OCR图片识别)
- Balanced Binary Tree 判断二叉树是否是高度相差不超过1的高度平衡的二叉树
- 使用QRCode生成二维码
- 简单介绍自动化运维工具clip
- FactoryBean的使用详解...
- Eclipse 导入Quick-Lua 工程
- recyclerview学习记录(一)
- Unity关于使用token值
- Python数据分析笔记
- qt和mysql中中文乱码的问题
- 数组和集合区别
- android Application类的详细介绍
- C#--访问修饰符