我有一个单一的声音,通过我的服务器在网上演出。 然而,它通过我的服务器成功运行,但音响似乎已经停止。 我曾试图将其编成法典,但我没有uck。 帮助
- (IBAction)oneSound:(id)sender; {
if (ButtonAlReadyClicked == 1)
{
ButtonAlReadyClicked = 2;
[sender setBackgroundImage:[UIImage imageNamed:@"m2.png"] forState:UIControlStateNormal];
}
else if (ButtonAlReadyClicked == 2)
{
ButtonAlReadyClicked = 1;
[sender setBackgroundImage:[UIImage imageNamed:@"m1.png"] forState:UIControlStateNormal];
}
if (player && player.playing) {
[player stop];
[player release];
player = nil;
return;
}
AVPlayer *player = [[AVPlayer playerWithURL:[NSURL URLWithString:@"http://www.mysite.com/hi.mp3"]] retain];
[player play];
}
我发现的错误:使用未申报的识别器[3]