Category: Swift

How to parse json data with Swift ?

Today, I found out that  reading the json data fron the local file is quite easy. All you have to do is like the sample I pasted below. The string value “myname” is the json files name located inside the folder. The variable “a” consists of the data within the file, and I have confirmed that the data had been… Read more →

Setting up a background programmatically with swift

At first I had a difficult time searching for the method to set up the background with SWIFT since, I was totally new to it. But after couple of hours I was able to find the solution for it. Before using the custom background image I was simply using the UIColor for the background. self.backgroundColor = UIColor.cyanColor() Unlike in android… Read more →