-1

I am using GSEventLockDevice() in ios 5 & 6 working fine but not working in iOS 7. why GSEventLockDevice not working in iOS 7?

Please give me a valuable reason.

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Kannan
  • 1
  • 1
  • 2

1 Answers1

-1

GSEventLockDevice() is not a public iOS API function. This worked in iOS 5 and 6 because Apple didn't restrict it properly. Chances are if you uploaded the app for iOS 5 and 6 the app would have been denied it because it's a private API.

If you are developing for jailbroken devices read this how to.


Just to make it clear, programmatically locking an iOS device will get your app rejected.

Community
  • 1
  • 1
John Riselvato
  • 12,854
  • 5
  • 62
  • 89