Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created June 17, 2014 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save veeneck/f0c0753cde8fc7ddd4c2 to your computer and use it in GitHub Desktop.
Save veeneck/f0c0753cde8fc7ddd4c2 to your computer and use it in GitHub Desktop.
Load pList in Swift
let path = NSBundle.mainBundle().bundlePath + "/FlagProgression.pList"
let pListData = NSDictionary(contentsOfFile:path)
let flagData = pListData[self.category.toRaw()] as NSArray
return flagData.objectAtIndex(self.currentLevel) as Dictionary<String, String>[]
@stjimmy88
Copy link

what's a 'category' type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment