摘要: 这些方法都是在网上看到的,我自己经过测试的就这2种;1.UIWindow(已测试)- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{}- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event{ if (motion == UIEventSubtypeMotionShake ) { //这里可以促发系统震动,或者发送一个通知,进行相应的处理 }}- (void)motionCancelled:(UIEventSubtype). 阅读全文
posted @ 2013-02-28 15:37 traximus 阅读(427) 评论(0) 推荐(0) 编辑