Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Basic Sensors in iOS
Preface
Who Should Read This Book?
What You Should Already Know?
What Will You Learn?
What’s In This Book?
Conventions Used in This Book
Using Code Examples
Safari® Books Online
How to Contact Us
Acknowledgments
1. The Hardware
Available Sensor Hardware
Differences Between iPhone and iPad
Device Orientation and the iPad
Going beyond basic support
Detecting Hardware Differences
Camera Availability
Audio Input Availability
GPS Availability
Magnetometer Availability
Setting Required Hardware Capabilities
Persistent WiFi
Background Modes
2. Using the Camera
The Hardware
Capturing Stills and Video
Video Thumbnails
Video Thumbnails Using the UIImagePicker
Video Thumbnails Using AVFoundation
Saving Media to the Photo Album
Video Customization
3. Using Audio
The Hardware
Media Playback
Recording and Playing Audio
Recording Audio
Playing Audio
4. Using the Accelerometer
About the Accelerometer
Writing an Accelerometer Application
Determining Device Orientation
Determining Device Orientation Directly Using the Accelerometer
Obtaining Notifications when Device Orientation Changes
Which Way Is Up?
Convenience Methods for Orientation
Detecting Shaking
5. Using the Magnetometer
About the Magnetometer
Writing a Magnetometer Application
Determining the Heading in Landscape Mode
Measuring a Magnetic Field
6. Using Core Motion
Core Motion
Pulling Motion Data
Pushing Motion Data
Accessing the Gyroscope
Measuring Device Motion
Comparing Device Motion with the Accelerometer
7. Going Further
The iPhone SDK
Geolocation and Maps
Third-Party SDKs
Speech Recognition
Computer Vision
Augmented Reality
External Accessories
About the Author
Colophon
← Prev
Back
Next →
← Prev
Back
Next →