我想开发一个应用程序,当somone摇动iPhone时从表视图中删除行,有人可以建议我如何继续
答案 0 :(得分:0)
导入QuartzCore / QuartzCore.h框架并调用以下方法
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent*)event {
}
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent*)event {
}
- (void)motionCancelled:(UIEventSubtype)motion withEvent:(UIEvent*)event {
}