How can I simulate the home button press event in iOS 7? I tried, but it only worked at the home screen but not inside the other apps.The problem is mainly about the port
, it looks like that if I got the task port
of SpringBoard
, it works, otherwise not.But how can I get the task port
of SpringBoard
no matter at the home screen or inside others apps?Thank you!
[[%c(SBUIController) sharedInstance]clickedMenuButton]; //One tap
[[SBUIController sharedInstance] handleMenuDoubleTap]; //Double tap
[[%c(SBUserAgent) sharedUserAgent] lockAndDimDevice] //Lock button
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With