Search code examples
iphoneobjective-ciosios4

How can we programmatically enable/disable default iPhone Camera?


I am looking for the way to enable and disable default iPhone camera such as at certain time or latitude/longitude. There are some place where the camera is prohibited, so we can disable it when one reaches at such a place, this is just for an example. Well I thought that disabling and enabling camera in iPhone is not possible. But when my superior gave me the document and said me to check this then I found that its possible to enable/disable default iPhone camera. That document was for enterprise deployment guide, which is associated with enterprise program. There was written the new features of enterprise program and has mentioned the point of enabling and disabling the default iPhone camera. You can look for the enterprise deployment guide over net and can see that thing. Well I googled for this that how to enable disable the camera, but nothing came. So can you please let me know that how to do this mean enabling disabling camera. Is there any tutorial reference any samples there. Moreover I would like to ask that what is the difference then in enterprise, do we make the apps in the same way in the enterprise as we make for the general developer program. So how to accomplish this thing enabling/disabling default iPhone camera? How to implement as well?

well I also thinked same as you are saying that it's not possible. But when I saw the enterprise deployment guide I was shocked. Here is the link to download this guide and you can have a look over that then you will also come to know that this is possible Enterprise Deployment Guide

What’s New for the Enterprise in iPhone OS 3.0 and Later See this para and you can find the point under there where is this mentioned that you can enable/disable camera in iPhone


Solution

  • Allow use of camera: When this option is turned off, the camera is completely disabled and its icon is removed from the Home screen. Users are unable to take photographs.

    source: http://manuals.info.apple.com/en_US/Enterprise_Deployment_Guide.pdf

    I believe you can if you have gained the Enterprise Edition.