Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Q. How do I make the decision between using MPMusicPlayerController versus AVAudioPlayer for sound playback in my applications?
A. Use the AVAudioPlayer for audio that you include in your application bundle. Use the MPMusicPlayerController for playing files from the music library. Although the MPMusicPlayerController is capable of playing back local files, its primary purpose is integrating with the existing music library media.
Q. I want to specifically control what camera a device is using to take a picture. How can I do this?
A. You’ll want to take a look at the cameraDevice property of the UIImagePickerController class. Setting this property to UIImagePickerControllerCameraDeviceFront will use the iPhone/iPad’s front-facing camera, for example.