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
Kindly check these below links:
1) http://iphonedevwiki.net/index.php/SBApplication
2) Simulate all physical buttons like the pressure on the home button on iOS 7 (Jailbreak)
Hopefully these links help you in resloving your problem. Cheers :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.