我正在AVAudioplayer
根据我的应用程序要求在 IOS6 中进行开发。我的代码完成了。我想将第一响应者连接到 viewcontrollerXIB。但我不知道如何将第一响应者的连接提供给viewcontrollerXIB
. 我是编程新手。请任何机构提出建议。
@interface AudioViewController :
UIViewController<AVAudioPlayerDelegate,NSURLConnectionDelegate> {
IBOutlet UILabel *astroName;
IBOutlet UIButton *playButton;
IBOutlet UIButton *pauseButton;
IBOutlet UIButton *forwardButton;
IBOutlet UIButton *rewindButton;
IBOutlet UISlider *volumeSlider;
IBOutlet UISlider *progressSlider;
IBOutlet UILabel *currentTime;
IBOutlet UILabel *duration;
}
- (IBAction)playButtonPressed:(UIButton*)sender;
- (IBAction)rewindButtonPressed:(UIButton*)sender;
- (IBAction)rewindButtonReleased:(UIButton*)sender;
- (IBAction)forwardButtonPressed:(UIButton*)sender;
- (IBAction)forwardButtonReleased:(UIButton*)sender;
- (IBAction)volumeSliderMoved:(UISlider*)sender;
- (IBAction)progressSliderMoved:(UISlider*)sender;
@end