Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func getDataFromJSON(){
- //Calling getCollectionViewData from the RestParser class
- RestParser.sharedInstance.getConfig{json in
- //iterating to the JSON file to get alle data
- let results = json[0]["menu"]
- for (index: String,cofigData:JSON)in results{
- self.items.append(cofigData)
- }
- let testString: String = items["title"]
- self.btnCollectionView.setTitle(testString, forState: UIControlState.Normal)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement