Archives for 

swift

Setting up backgrounds for UIView

There are different ways of setting up backgrounds in Swift, depending on the object, method, background type etc. We will go through some of these here. Setting up a background image for a UIView: Replace “myImage.png” with the name of your image. Note: Make sure you add your images to the Bundle first. To […]
2

Contacts App / Inventory with Archiving 2.0

Hi, all Here is the updated version of the Contacts app with archiving. It will now let you save and load multiple contacts. I am just going to list some of the new things added. Here are the previous and next buttons on the Load View screen:       Here are the […]
2

Multiplications Table app

Ok, this app will be just an example of how to create things programmatically, without using the Auto Layout or any of the other fancy things within XCode. It’s a very simple app, but to me it was a very good experience learning to build and troubleshoot things directly in code. The app will look […]
1

Contacts App / Inventory with Archiving

Here is the latest app. It is supposed to be an contacts inventory app. This is the first version as it is just letting you save/load one contact. Key points here are: creating custom Classes archiving / unarchiving with NSCoding using multiple UIViews with Navigation Controller using multiple, nested ‘if {} else {}’ statements separating […]
1

Task List App

Here is a complete example of a task list app. Originally this was a more simple exercise on which I just decided to build on. I have tested it it multiple times and fixed at least 20-30 bugs with it, but I am sure there are more things. There is almost no verification against correct […]
1