iOS 搖一搖功能實現 —— HERO博客

搖一搖功能系統已經幫咱們實現好了,只須要在控制器調用下面方法就能夠了:測試 //開始搖動 - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"開始搖動"); return; } //取消搖動 - (void)motionCancelled:(UIEventSubtype)m
相關文章
相關標籤/搜索