[MirrorStarAV startRecording:]: unrecognized selector sent to instance 0x15561d60
The above error message is basically saying that MirrorStarAV
doesn't respond to startRecording:
so when you call [delegateMSA startRecording];
it is crashing. The delegateMSA
has an instance of MirrorStarAV
set to it but instances of MirrorStarAV
don't respond to `startRecording:
Whilst YES it would be better for you to change your method to something like
bool _startRecording(){
if ([delegateMSA respondsToSelector:@selector(startRecording)])
{
return [delegateMSA startRecording];
}
return false;
}
but this isn't your issue. Note that [MirrorStarAV startRecording:]
has a colon :
at the end. You are calling startRecording:
somewhere over startRecording