NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll

Recently I started to get this error: NSPhotoLibraryUsageDescription key must be present in Info.plist to use camera roll. I am using React Native to build my app (I am not familiar with ios native development) and I don’t know how to add this key to Info.plist Can you post an example? Thanks I am using … Read more

NavigationBar bar, tint, and title text color in iOS 8

The background text in the status bar is still black. How do I change the color to white? // io8, swift, Xcode 6.0.1 override func viewDidLoad() { super.viewDidLoad() self.navigationController?.navigationBar.barTintColor = UIColor.blackColor() self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.orangeColor()] } 18 Answers 18

Importing CommonCrypto in a Swift framework

How do you import CommonCrypto in a Swift framework for iOS? I understand how to use CommonCrypto in a Swift app: You add #import <CommonCrypto/CommonCrypto.h> to the bridging header. However, Swift frameworks don’t support bridging headers. The documentation says: You can import external frameworks that have a pure Objective-C codebase, a pure Swift codebase, or … Read more

UITableViewCell show white background and cannot be modified on iOS7

I’ve implemented a custom table view cell class that inherit from UITableViewCell. The tableview contains a background image, so I want cell’s background to be transparent. It looks great before iOS7. However, in iOS7, the cell is always shown with a white background. Even for Xcode7, 2015, there is a bug in storyboard: you have … Read more

react-native: command not found

I am getting -bash: react-native: command not found error while creating a react-native project. Below are the additional info 1. brew –version homebrew 0.9.9 2 brew info watchman watchman `enter code here`stable 4.50 /usr/local/Cellar/watchman/4.4.0 3. brew info flow stable 0.24.1 /usr/local/Cellar/flow/0.24.1 4. brew info node stable 6.1.0 /usr/local/Cellar/node/6.1.0 5. npm -version 3.8.6 6. echo $PATH … Read more