简体   繁体   中英

How to simulate home button press event in iOS 7(Jailbroken)?

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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM