Skip to content

Instantly share code, notes, and snippets.

@veeneck
Created June 17, 2014 21:19
Show Gist options
  • Select an option

  • Save veeneck/f0c0753cde8fc7ddd4c2 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

what's a 'category' type?

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