Created
December 25, 2015 07:18
-
-
Save soggybag/7d43e4ca4dbbc76e0a33 to your computer and use it in GitHub Desktop.
Load data from plist
This file contains hidden or 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
func loadDataFromPlist(plist: String) -> NSArray? { | |
if let path = NSBundle.mainBundle().pathForResource(plist, ofType: "plist") { | |
return NSArray(contentsOfFile: path) | |
} | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment