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?
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?
Short Answer:No.
A few photography applications have tried to do this and Apple has rejected them all. Maybe one day...
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.
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.Yes, but only on a jail-broken phone.
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
This is possible. This tutorial will walk you through the steps.
http://fredandrandall.com/blog/2011/11/18/taking-control-of-the-volume-buttons-on-ios-like-camera/