I tried.
__block UIBackgroundTaskIdentifier task=0;
task=[application beginBackgroundTaskWithExpirationHandler:^{
NSLog(@"Expiration handler called %f",[application backgroundTimeRemaining]);
[application endBackgroundTask:task];
task=UIBackgroundTaskInvalid;
}];
I want to display waveform when I record the audio.I have use the EZAudio
class but it will crash when I press HOME button or Lock Screen.
How can I run the app in background please help me.
Just i have used
EZAudioPlot
change toEZAudioPlotGL
. selectEZAudioPlotGL
view change only class name of view goto identity inspector and change itEZAudioPlot
. after thatChange it
its work fine.