سؤال

How do I programmatically lock the screen of the iPhone using C#?

هل كانت مفيدة؟

المحلول

Quick answer

Apple does not allow you to do so (it's not a C# limitation).

Longer answer

There's a private GSEventLockDevice API to do so - but it would prevent your application to be on the appstore (Apple will refuse it because of the private API). Also it seems it is not working anymore for iOS7.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top