iPhone Accelerometer Code
As I mentioned in the comments over here, getting UIKit to give your app Accelerometer data is pretty straightforward. Here’s my sample code that combines the accelerometer howto from the standard iphone hello world app and Erica’s slider howto.
Note: Kroo from IRC warns that this technique will only work if the app is launched from launcher or the springboard.
Also: Drunknbass found that you may have to restart springboard before it will work.
And: Check out Erling’s code if you want a faster sample rate.