The iPhone, iPad, and iPod touch all include a built-in accelerometer—the tiny device that lets iOS know how the device is being held and if it’s being moved. iOS uses the accelerometer to handle autorotation, and many games use it as a control mechanism. The accelerometer can also be used to ...
© Molly Maskrey, Kim Topley, David Mark, Fredrik Olsson and Jeff Lamarche 2016
Molly Maskrey, Kim Topley, David Mark, Fredrik Olsson and JEFF LAMARCHE, Beginning iPhone Development with Swift 3, 10.1007/978-1-4842-2223-2_20
20. Device Orientation and Motion
Molly Maskrey1 , Kim Topley2, David Mark3, Fredrik Olsson4 and Jeff Lamarche5
(1)Parker, Colorado, USA
(2)Apt 10G, New York, USA
(3)Arlington, Virginia, USA
(4)Stockholm, Sweden
(5)New Hartford, New York, USA
Get Beginning iPhone Development with Swift 3: Exploring the iOS SDK, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.