没有合适的资源?快使用搜索试试~ 我知道了~
CPMotionRecognizer:向 UIResponder 添加“动作识别器”(用于检测抖动)
共21个文件
m:6个
h:5个
xib:3个
需积分: 9 0 下载量 6 浏览量
2021-06-19
21:43:18
上传
评论
收藏 20KB ZIP 举报
温馨提示
像触摸手势一样处理设备抖动: [self addMotionRecognizerWithAction:@selector(shakeWasRecognized:)]; 用法 设置一次… 在您的应用程序委托中,实例化运动检测 UIWindow 子类: self.window = [[CPMotionRecognizingWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; ...然后像这样使用 无论你想要处理抖动的地方,添加“动作识别器”: [self addMotionRecognizerWithAction:@selector(shakeWasRecognized:)]; 并实现回调: - (void) shakeWasRecognized:(NSNotification*)notif; 完成后: [s
资源推荐
资源详情
资源评论
收起资源包目录
CPMotionRecognizer-master.zip (21个子文件)
CPMotionRecognizer-master
License.md 1KB
Demo
RootControllerAsFirstResponder-Prefix.pch 1KB
CPViewController.h 214B
CPAppDelegate.m 982B
en.lproj
CPViewController_iPhone.xib 5KB
InfoPlist.strings 45B
CPViewController_iPad.xib 5KB
main.m 492B
CPChildViewController.m 2KB
CPViewController.m 755B
CPChildViewController.h 297B
CPAppDelegate.h 329B
CPChildViewController.xib 13KB
RootControllerAsFirstResponder-Info.plist 1KB
Readme.md 4KB
CPMotionRecognizer.gemba 621B
RootControllerAsFirstResponder.xcodeproj
project.pbxproj 16KB
Component
CPMotionRecognizingWindow.h 174B
UIResponder+MotionRecognizers.h 632B
CPMotionRecognizingWindow.m 440B
UIResponder+MotionRecognizers.m 489B
共 21 条
- 1
资源评论
蜜蜜蜜蜜糖
- 粉丝: 18
- 资源: 4606
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功