开发者

What method is called when iPhone is locked?

I want my app to stop locating the user when the app is open, but the phone is locked, to cut down on battery usage. What delegate method is called when the user locks the phone while an app is still running and acti开发者_C百科ve?


I don't know if there's a special one just for locking, but applicationWillResignActive: is definitely called when the phone is locked (or receives a call, etc.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜