Is there any way to programmatically enable or disable camera globally (i.e. restrict for all the application)
I have seen in Settings -> General -> Restrictions we can actually enable or disable camera, but is it possible programmatically?
In android we can use MDM (Mobile Device Management) to control this feature, is it possible in iOS also using swift code?
You will not be able to disable camera programmetically in iOS.
You have to enforce disable camera payload on iOS devices through MDM.
Related
Is there any way to control the rotation of an Salesforce IOS Hybrid app. I'm using Salesforce IOS SDK. I want to have some of the screens allow to rotate and some not. I know we can set it the app's general setting but it will apply across the whole app not into each screen.
Does anyone know if it is possible to
use the Microphone in a custom Keyboard
extension in iOS 8?
Custom keyboards, like all app extensions in iOS 8.0, have no access to the device microphone, this means that Siri’s dictation speech-to-text functions are not available when you are using a third-party keyboard and also you can’t offer your own third-party dictation functions
see documentation here
I am developing an alarm based iOS application where the user can set the alarm tune from ring tone menu. I am new to iOS so I do not know if that is possible or not?
You want to be able to change the alarm tone that the Apple-provided alarm app uses?
Nope.
Apple does not allow third party apps to muck around with the settings of their apps.
Is there a way to programmatically restrict camera access on iPhone 4S 5.0.1?
I am building a simple app with a button to enable/disable shooting with the camera.
I believe it should work in the similar way as the restrictions work in Settings app.
I am not going to deploy it, so I do not mind about Apple's approve.
Thanks!
there is no such a policy based programming like android in iphone to disable the camera. its possible only in rooted iphones.
I think the only option will be with MDM solutions
I've developed a user experience in my iOS app for displaying a different view on an external screen connected via AirPlay screen mirroring or HDMI out. I have a setting to enable/disable this feature, allowing the user to choose between this mode and true mirroring (i.e. same experience on both screens).
Since many iOS devices don't even support external displays (iPhone 3GS and earlier, iPod touches) and some only support HDMI out (iPhone 4, iPad 1, iPad 2 with iOS4), I'd like to tailor the settings UI for each category of device.
I know it's good practice to detect capabilities whenever possible and not to avoid checking the version of the device itself. However, I haven't found anything online about detecting AirPlay support, just how to code for it.
Is it possible to detect AirPlay/HDMI support in the SDK?
(Apple's documentation on developing for external screens:
http://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/CreatingWindows/CreatingWindows.html)
No, not directly and in a summary fashion.
I think you would probably be best off detecting the device version and using that as the basis of your UI.
If you really believe that is bad practice, I suggest you explore Erica Sadun's UIDevice extensions - you might be able to find in there the code necessary to query enough specific capabilities to create an abstraction that would let you know if a device is AirPlay/HDMI capable. If you do that, I hope you share it!
UIDevice-extension: https://github.com/erica/uidevice-extension
As a side note, don't forget about the VGA adapter. I have tested my app with it at 1080p and it works/looks as good as the HDMI adapter, which was a big surprise to me.