ViewController.h
//
// ViewController.h
// iOSAudio
//
// Created by 杜甲 on 13-11-18.
// Copyright (c) 2013年 杜甲. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface ViewController : UIViewController<AVAudioPlayerDelegate>
@property (strong , nonatomic) AVAudioPlayer* player;
@end
ViewController.m
//
// ViewController.m
// iOSAudio
//
// Created by 杜甲 on 13-11-18.
// Copyright (c) 2013年 杜甲. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
[self playBac