How can I get a notification that the screen / phone was locked while my application was running? I want to pause some timers related to updating the display in such cases.
I think your UIApplicationDelegate will receive the following message before the screen locks:
- (void)applicationWillResignActive:(UIApplication *)application
here's a link to the documentation: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/applicationWillResignActive :
Source: https://habr.com/ru/post/1741399/More articles:IoC from start to finish - dependency-injectionЗапись/воспроизведение с помощью AudioQueue на iPhone - objective-cHow to get rid of a custom object from a user membership provider - c #How .net 4.0 and .net 2.0 CLR can exist on the same machine - .netWhich OS would you choose for Visual Studio 2010? - visual-studio-2010Sharing data in a Symfony Multi-tenant application using Doctrine - symfony1Migrating from Silverlight 3 to Silverlight 4 - visual-studio-2010WinForms modal windows alt + tab problem - winformsHow reliable is DateTime.UtcNow in Silverlight applications? - datetimecasting now - mysqlAll Articles