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

如何实现微信一样的摇一摇功能,如何通过代码实现检测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...

巴扎黑
巴扎黑

répondre à tous(1)
阿神
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event
{
    if (motion == UIEventSubtypeMotionShake)
    {
        NSLog(@"shaked");
    }
}
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!