Last active
October 16, 2017 18:33
-
-
Save reejosamuel/115491d440caba56d5c4a1972d0d7b4e to your computer and use it in GitHub Desktop.
Loading another plist file for settings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let path = Bundle.main.path(forResource: "<#nameOfPlist#>", ofType: "<#plist#>"), | |
let myDict = NSDictionary(contentsOfFile: path), | |
let apiKey = myDict.value(forKey: "API_Key") as? String { | |
print("API Key: \(apiKey)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment