A quick implementation with Swift of how to use the accelermeter and gyroscope in IOS 8. Most of the ideas for this comes from http://nscookbook.com/2013/03/ios-programming-recipe-19-using-core-motion-to-access-gyro-and-accelerometer/ and I coverted it into swift
Credit: Joe Hoffman - great tutorail on basic accelermeter and gyroscope usage