-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9/15/11 12:40 PM, Shawn Bakhtiar wrote: > > Hi All, > > I have multiple users using the same iTouch device during our > inventory, shipping and receiving process. They log in, take > inventory, ship stuff, receive stuff, than leave it on the > counter. They have requested that the unit time out after 5 min > back to the log in screen. I have done some research on line, and > have come across a few awkward suggestions on how to do it. > > I am looking for someway of detecting when the device goes back to > the lock screen, and using that as a signal to take my app to the > login window and clear out the password field.
Take a look at the UIApplicationDelegate protocol. I haven't played with it, but: - - applicationProtectedDataWillBecomeUnavailable: looks like a promising direct notification that the phone is going to be locked (provided the device is using content protection and a passcode). It's a bit of a misappropriation of the notification, but other options (such as -applicationWillResignActive:) are going to have side effects because they can be triggered by other events. - -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5yWHwACgkQaOlrz5+0JdVXiwCfXCh1RiGWkbz6pOJBVAkqgM/n UfgAn1Enl23LuGAI8a2XgaI3s1zitF6W =X2vs -----END PGP SIGNATURE----- _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com