Audio Player control knowledge points:
(1) The Audio Player control acts on the sound environment of the iPhone SDK program. It is a device for playback of Audio files in documents or memory, it can play any sound file in ios (all Apple's operating systems) and provide a lot of resources for sound building in iPhone apps, such: sound playback, recording, stopping, and loop.
(2) Functions of the AVFoundation framework
The AVFoundation framework provides a series of classes, which are responsible for Object Management and playback of audio and video media in iPhone OS structures. After this header file is introduced, you can use any classes declared in AVFoundation in the program:
# Import
Note: AVAudioPlayer is a sound player framework in iPhone OS. It supports a wide range of audio formats, including AAC, AMR, ALAC, iLBC, IMA4, linearPCM, and MP3.
The Code is as follows: XXXViewController. h
XXXViewController. m
<Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140210/20140210133635188.jpg" alt = "">