0

i saw on github a project where the developer used the method _powerDown to powerOff the iPhone or relaunchSpringBoard to respring it.The line of code is this:

[[UIApplication SharedApplication]_powerDown];

but i was searching this method on the class reference of UIApplication but i didn't find it...Could anyone help me?

thanks!

1 Answers1

1

I'm not sure this really is a method of UIApplication, but if it is, it is definitely a private one. Therefore it is not listed in the official documentation and you should not us it.

Rengers
  • 14,911
  • 1
  • 36
  • 54