Sunday, June 21, 2015

A Simple Swift iOS App from Start to Finish - Creating the Main View

Introduction

This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.

I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:





In this article I am going implement the main view of my app by customizing the View provided The Single View Application template. At this stage all my main view will contain is a single 3 line label. The app will set both the label contents and the background color of the view. I will eventually extend this view with a graphical representation of the number of days but I will leave that for a later article.

Sunday, June 14, 2015

A Simple Swift iOS App from Start to Finish - Creating the Collection Class

Introduction

This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.

I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:





In this article I am going to create a class to encapsulate a collection of my Thing objects. My app will use this to hold all the things the user defines. The class will contain the high level interface to the data which will be stored in a local core data store. I will leave the low level core data functions in the AppDelegate class.    

Tuesday, June 9, 2015

A Simple Swift iOS App from Start to Finish - Creating the Data Model's Wrapper Class

Introduction

This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.

I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:




In this article I am going to create the wrapper class for my Thing entity and implement the code for a calculated property called currentDayCount.

Thursday, June 4, 2015

A Simple Swift iOS App from Start to Finish - Creating the Data Model

Introduction

This is part of a series of articles describing the creation of a simple iOS app. A complete list of the articles is included in the first part A Simple Swift iOS App from Start to Finish - Introduction.

I have set up a web site for the finished app at http://DaysWithoutThings.com and you can download it free directly from the app store:




In this article I am going to create the Data model for my app. Core Data provides an interface that is very similar to a relational database except it defines data in terms of entities rather than tables. My app is going to keep records for the things it is tracking and the notifications it will attach to those things. To implement this I am going to create two entities which I will call Thing and Notification.