Is there any delegate or observer which tells ios app that user has pressed on lock button
I am getting didResignActive when app is in foreground. But my requirement is to pause/Stop PIP(Picture in Picture) running in background when user locks the phone or receive call.