2013年4月3日

使用AVAudioRecorder实现录音的例子

摘要: 使用AVAudioRecorder完成的最简单的录音功能的一个例子。如果要做更加复杂的比如考虑音质,转码等问题,还需要再做研究。源代码下载:SoundRecorder 阅读全文

posted @ 2013-04-03 18:01 流れ星ーー 阅读(207) 评论(0) 推荐(0) 编辑

iOS中识别手机摇晃事件--skake手势

摘要: 晃一下手机,就能搜索出一堆在旁边的陌生人,这样的方法我们经常见过,怎么实现的呢。有两种方法。方法一// Ensures the shake is strong enough on at least two axes before declaring it a shake.// "Strong enough" means "greater than a client-supplied thresho... 阅读全文

posted @ 2013-04-03 09:29 流れ星ーー 阅读(543) 评论(0) 推荐(0) 编辑

CoreMotion--iOS中的陀螺仪用法

摘要: ios中有一个陀螺仪模块,CoreMotion下面使用例子 //初始化CoreMotion#import CMMotionManager *motionManager = [[CMMotionManager alloc]init]; //1. Accelerometer 获取手机加速度数据CMAccelerometerData *newestAccel = motionManager.a... 阅读全文

posted @ 2013-04-03 09:24 流れ星ーー 阅读(310) 评论(0) 推荐(0) 编辑

导航