Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. func getDataFromJSON(){
  2. //Calling getCollectionViewData from the RestParser class
  3. RestParser.sharedInstance.getConfig{json in
  4. //iterating to the JSON file to get alle data
  5. let results = json[0]["menu"]
  6. for (index: String,cofigData:JSON)in results{
  7. self.items.append(cofigData)
  8. }
  9. let testString: String = items["title"]
  10. self.btnCollectionView.setTitle(testString, forState: UIControlState.Normal)
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement