Skip to content

Instantly share code, notes, and snippets.

@aGupieWare
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save aGupieWare/f922497d22f8744942e9 to your computer and use it in GitHub Desktop.

Select an option

Save aGupieWare/f922497d22f8744942e9 to your computer and use it in GitHub Desktop.
Swift client inventory items method . . .
func inventoryItems(data: NSData) -> (Array<PlumbingSupplyItem>) {
var jsonParseError: NSError?
var jsonResult = NSJSONSerialization.JSONObjectWithData(data, options: NSJSONReadingOptions.MutableContainers, error: &jsonParseError) as NSDictionary
return [jsonResult]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment