IOS 7 30-day proficient in iPhone mobile programming 18th-day music player

Source: Internet
Author: User

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 = "">


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.