ios - Simulate device buttons inside my app? -
i have view containing 4 buttons:
- home
- lock
- volume up
- volume down
all i'm trying make when press 1 of these buttons, app should communication device simulate 1 of these buttons.
example: if click home button exists within app
, same press home button
in device.
this kind of thing possible? jailbreak necessary this?
to after go against apple review guidelines app rejected under
2.5 - apps use non-public apis rejected
you not allowed take functionality of home
, lock
away these buttons , put within application.
though not impossible if app jailbroken devices. such exit app can exit(0);
though still wouldn't recommend makes though app has crashed when hasn't.
for volume control can use of mpvolumeview
recommend having read of apple documentation , question ios: accessing device hardware audio volume control
Comments
Post a Comment