AVAudioRecorder Won't Record On Device

后端 未结 5 1732
失恋的感觉
失恋的感觉 2021-01-02 22:28

This is my method:

-(void) playOrRecord:(UIButton *)sender {
    if (playBool == YES) {
        NSError *error = nil;
        NSString *filePath = [[NSBundle         


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-01-02 23:00

    This is because you cannot modify the app-bundle on the device ( it is signed ). You can record to either the docs folder for your app, or the tmp directory.

提交回复
热议问题