开发者

Why does voice recording cause a crash in my application on an original iPhone?

I have created a voice recording app. It works fine on an iPhone 3G bu开发者_StackOverflow中文版t crashes on an original 2G iPhone.

The crash occurs in the following methods:

-(void)RecordbtnPressed:(UIButton *)sender {

    [Record removeFromSuperview];
    stop.alpha=1;
    T=[NSTimer scheduledTimerWithTimeInterval:1 target:self :@selector(startTimer) userInfo:nil repeats:YES];
    persistance_Obj->recordClicked=TRUE;
    [AudioViewController_Obj startRecording];
}

-(void)StopbtnPressed:(UIButton *)sender {

    printf("\n stop pressed");
    persistance_Obj->recordClicked=FALSE;
    [T invalidate];
    T=nil;
    [AudioViewController_Obj stopRecording];
    MainMenu * obj_RV=[[MainMenu alloc] init];
    [self.navigationController pushViewController:obj_RV animated:YES];
    [obj_RV release];
}

The crash occurs right when I click the stop button, calling the second method. What could be the cause of this crash?


Ok, just get clear? The iPhone 1G you are talking about is actually the first released one and the iPhone 2G you are talking about is actually the iPhone 3G?

Maybe you could show us some code on where the app crashes?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜