您的位置:首页 > 其它

实用知识:摇一摇功能的方法使用(真简单??)

2016-05-11 20:09 357 查看
#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

// 开始摇一摇
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
NSLog(@"开始摇一摇");
}

// 结束摇一摇
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
NSLog(@"结束摇一摇");
}

// 摇一摇被取消
- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
NSLog(@"取消摇一摇");
}

@end
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: