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.