3 Very Useful Accelerometer And Vibration Code Snippets

The accelerometer can be one of the more confusing iPhone features to program. The input generally to be filtered, generally needs quite a bit of tweaking, and I’ve found that many people simply want too much out of the accelerometer.

The compass addition allows you to take it to a level beyond the original iPhone, but reliable reading of complex gestures are still out of the question.  That being said it is a cool feature, and can add another level of interactivity to your apps. Kevin Bomberry from Able Pear Software has written a great post with some very useful code snippets for those wishing to add simple accelerometer usage, and vibration to their apps.

The snippets allow you to easily implement shaking, vibration, and a combination of the two in your apps.  The article can be found here entitled:  iPhone SDK Shake, Rattle, and Roll.

Thanks for reading, please leave any comments below.

Getting started with iPhone and iPad development, and looking for a straightforward guide to get you started with Objective-C fast as possible?
Click here to check out a great straightforward no-nonsense guide to getting started with iPhone development as fast as possible.

Share and Enjoy:
  • RSS
  • Twitter
  • Facebook
  • DZone
  • HackerNews
  • del.icio.us
  • FriendFeed

Random Posts

blog comments powered by Disqus