iPhone Shake Detection using MotionEvent

by Prasanna Vignesh 17. June 2010 13:15
Two simple way to detect the shake of iPhone, 1. Using UIAccelerometer. 2. Using Motion Events. Using UIAccelerometer Check this Link. Using Motion Events In your UIViewController add the following methods. - (void)motionBegan:(UIEventSubtype)... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

iPhone Detect Shake using UIAccelerometer

by Prasanna Vignesh 17. June 2010 12:06
#define kAccelerationThreshold 2.2     //Somewhere in initialization UIAccelerometer *accel = [UIAccelerometer sharedAccelerometer]; accel.delegate = self; accel.updateInterval = 1.0f/10.0f;     //Method to detect Shake... [More]
Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Tags: , ,

iPhone Development

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen, Modified by Prasanna Vignesh.



About Me

Prasanna Vignesh Prasanna Vignesh
Mobile application developer at ZSL. More...



RecentPosts

Calendar

<<  September 2010  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

View posts in large calendar