New Video Tutorial on the Accelerometer (on both X and Y axis) plus some Swift 1.2 changes

New Video Tutorial on the Accelerometer (on both X and Y axis) plus some Swift 1.2 changes
April 21, 2015 Justin at CartoonSmart

New Video Tutorial on the Accelerometer (on both X and Y axis) plus some Swift 1.2 changes

 

Just added a new video tutorial for our iOS subscribers. This continues our previous project using the Accelerometer in an iOS app, and extends it to using tilt data on both the x and y axis. One of the trickier things discussed is how to offset the y tilt so we can balance the ball based on how the user is naturally holding their device. Without this the code assumes the device is being placed flat on a table and tilts accordingly.


Also I’ve updated all the source files for this course to being Swift 1.2 friendly. This really didn’t involve much at all, just some minor changes to the view controller and touchesBegan statement that was prewritten in the template anyway.  Regardless, I recorded a short video tutorial on it anyway.

And if you aren’t already a CartoonSmart  Subscriber check out our VERY affordable subscription options.

Video Tutorials for Swift 1.2 - Accelerometer

Never lose your place.

Sign up for the newsletter to get a free CartoonSmart account and track your progress in every course.

I'm cool. Sign me up!