Categories
Mastering Development

How to call a value from a different ViewContoller? (Swift)

Iv created a quiz app, that tracks the user’s score till the user gets to the end. There is an if statement – when it reaches the end of the quiz, a results View controller pops up. My Question is I want to get the same score value presented at the end on the resultsViewContoller. […]

Categories
Development

How to insert values to a nested array

I am having one report array of objects which is used to show report data on the dashboard as below, report = [ {id: “id01”, code: “C001”, name: “apples”, type: “fruits”, intime:[], quantity:[]}, {id: “id01”, code: “C001”, name: “grapes”, type: “fruits”, intime:[], quantity:[]}, {id: “id01”, code: “C002”, name: “apples”, type: “fruits”, intime:[], quantity:[]}, {id: “id01”, […]