Is it possible to use iPhone's volume control

2020-02-13 08:59发布

I need to make a photo app.

Will it be possible to assign some function, like controlling the light intensity or brightness to an iPhone's hardware volume control buttons?

标签: ios
6条回答
来,给爷笑一个
2楼-- · 2020-02-13 09:08

Short Answer:No.

A few photography applications have tried to do this and Apple has rejected them all. Maybe one day...

查看更多
Lonely孤独者°
3楼-- · 2020-02-13 09:11

I don't think this is really possible as we cannot change the in-built functionalities of the volume control of iPhone and for that matter any of the iOS devices and make it work as we want.

I think all this is not a part of Public API for iOS developers which we can modify and use it for other functions in our application. It is a part of Private API.

So as far as I know, it is not possible.

Hope this helps you.

查看更多
放荡不羁爱自由
4楼-- · 2020-02-13 09:16

Changing the behavior of iPhone external hardware buttons is a violation of the iPhone Developer Program License Agreement.

There is an app that was banned from the appstore for trying this.

Ironically, iOS5 Camera App allows to use the volume control as a shutter. Perhaps the SDK will eventually allow more.

查看更多
干净又极端
5楼-- · 2020-02-13 09:18

Yes, but only on a jail-broken phone.

查看更多
贼婆χ
6楼-- · 2020-02-13 09:21

In general, the App Store Review Guidelines state that re-purposing physical buttons is not allowed. However, since the volume up button is now a standard feature for taking photos, there appears to be some leniency for camera apps that also adopt this feature. The official guidelines state this rule in section 2.5.9:

https://developer.apple.com/app-store/review/guidelines/#software-requirements

2.5.9 Apps that alter or disable the functions of standard switches, such as the Volume Up/Down and Ring/Silent switches, or other native user interface elements or behaviors will be rejected. For example, apps should not block links out to other apps or other features that users would expect to work a certain way. Learn more about proper handling of links.

查看更多
SAY GOODBYE
7楼-- · 2020-02-13 09:25
登录 后发表回答