0
我有一個小問題 - 當我嘗試從我的本地主機播放音頻時,它崩潰。
這是代碼,它不斷崩潰。AVAudioPlayer不能播放從url
stuff
是網址
stuff = [json objectAtIndex:indexPath.row];
songlink = [NSURL URLWithString:[stuff objectForKey:@"Link"]];
NSData *songdata = [NSData dataWithContentsOfURL:[NSURL URLWithString:[stuff objectForKey:@"Link"]]];
jam = [[AVAudioPlayer alloc] initWithData:songdata error:nil];
jam.delegate = self;
[jam play];
1.這是**與Xcode無關**。 2. http://emclstcd.tk – 2012-09-23 08:46:49