-(IBAction)Back:(id)sender{
NSString *path = [NSString stringWithFormat:@"%@%@",
[[NSBundle mainBundle] resourcePath],
@"/Dtmf-star.wav"];
//declare a system sound id
SystemSoundID soundID;
//Get a URL for the sound file
NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO];
//Use audio sevices to create the sound
AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID);
//Use audio services to play the sound
AudioServicesPlaySystemSound(soundID);
[Buttonback setImage: nil forState:UIControlStateNormal];
int size = [PhoneUrl length];
if (size>0) {
PhoneUrl = [PhoneUrl substringToIndex:size-1];
}
dspText.text = PhoneUrl;
}
我已经完成了..我可以删除一个数字,但如果有多个数字应用程序崩溃... 它在ios6中运行良好。
答案 0 :(得分:0)
除非你发布几乎完整的代码,否则这些问题对我们来说真的很难解决。但是,将程序与监视内存的调试功能结合使用是个好主意,因为您的问题很可能与此有关。