Objective-C: Change iOS headphones buttons actions -
i need bind own actions on ios headphones buttons.
for play/pause action found solution:
- add audio background in .xcodeproj
- implement method remotecontrolreceivedwithevent
- set self firstresponder
i can't set class first responder, bcs class subclass of uiviewcontroller. method class must subclass of uiresponder. put method in appdelegate , create notifications.
1. there other way put remotecontrolreceivedwithevent in class, without changing superclass or using notifications?
2. can change volume up/down actions?
to honest think bit of grey area. think if alter functions of buttons app rejected apple ios app store review process breaching guideline 10.5. don't believe apple test app headphones unless state headphones required app work. though if app needs headphones access functionality , didn't tell apple didn't test , found out possibly account banned dishonesty.
so in honesty based on review guidelines i'd can't possible reason stated , think you'd need access private apis achieve this. rejected under 2.5.
2.5 apps use non-public apis rejected
10.5 apps alter functions of standard switches, such volume up/down , ring/silent switches, rejected
so if going continue i'd tread (1) implement , (2) tell apple when goes review process. if me i'd tell apple there functionality behind buttons.
however don't think past review process 2.5 no mind reaching 10.5
Comments
Post a Comment