Iphone: adding UIRequiredDeviceCapabilitie

I read "Device Support - Installing the Essential Hardware Features" at http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/AdvancedFeatures/AdvancedFeatures.html

I want to add camera features by following these steps:

  • Open my Info.plist
  • Click +
  • Add UIRequiredDeviceCapabilities to Key column
  • Add a still camera in the Value column
  • Save Updated Info.plist

Is it correct?

Thanks in advance for your help.

+3
source share
3 answers

, , , :

if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
  //Something
}

, , . , , , , plist , Apple, . .

+3

- .

Raw Values ​​/Keys

  • + ,
  • UIRequiredDeviceCapabilities
  • XCode 0

"" (Uncheck Raw Values ​​/Keys)

  • " "
  • XCode .
+1
+1

Source: https://habr.com/ru/post/1742552/


All Articles