objective-c - iPhone如何实现微信的摇一摇功能?
巴扎黑
巴扎黑 2017-04-21 11:16:18
0
1
493

如何实现微信一样的摇一摇功能,如何通过代码实现检测iPhone摇晃?

http://developer.apple.com/library/io...

http://homepages.ius.edu/rwisman/C490...

http://www.edumobile.org/iphone/iphon...

http://www.ifans.com/forums/threads/t...
http://tech.pro/tutorial/968/iphone-t...

巴扎黑
巴扎黑

reply all(1)
阿神
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
    if (motion == UIEventSubtypeMotionShake)
    {
        NSLog(@"shaked");
    }
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!