Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Update NSCameraUsageDescription doc and samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryant Luk committed Aug 15, 2016
1 parent 11d9e71 commit ec9a863
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -95,6 +95,7 @@ pod 'CardIO'
1. Add [card.io's open source license acknowledgments](acknowledgments.md) to
[your app's acknowledgments](http://stackoverflow.com/questions/3966116/where-to-put-open-source-credit-information-for-an-iphone-app).
2. Refer to the header files for more usage options and information.
3. You should add the key [`NSCameraUsageDescription`](https://developer.apple.com/library/prerelease/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW24) to your app's `Info.plist` and set the value to be a string describing why your app needs to use the camera (e.g. "To scan credit cards."). This string will be displayed when the app initially requests permission to access the camera.

### Sample code

Expand Down
2 changes: 2 additions & 0 deletions SampleApp-Swift/SampleApp-Swift/Info.plist
Expand Up @@ -43,5 +43,7 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSCameraUsageDescription</key>
<string>To scan credit cards.</string>
</dict>
</plist>
2 changes: 2 additions & 0 deletions SampleApp/ScanExample/ScanExample-Info.plist
Expand Up @@ -43,5 +43,7 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSCameraUsageDescription</key>
<string>To scan credit cards.</string>
</dict>
</plist>

0 comments on commit ec9a863

Please sign in to comment.