Sunday, July 26, 2015

A Simple Swift iOS App from Start to Finish - Creating the List 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 to create my list view which will enable the user to add and remove 'things' from my app. 


The steps involved are:

Add a new TableView to my storyboard.
Add a NavigationController to my storyboard.
Add a Tap Gesture to my main view. 
Add a new TableViewController subclass for the new table view.

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.

Thursday, May 28, 2015

A Simple Swift iOS App from Start to Finish - Customizing the Launch Screen

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 customize the launch screen. In previous versions of iOS the launch screen was just an image that would be imported into Xcode in much the same way as the App Icons. A different version of the image was required for every resolution and orientation of every supported device. In Xcode 6 and iOS8 this has been simplified by replacing the image files with a Interface Builder XIB file containing a view definition.


Monday, May 25, 2015

A Simple Swift iOS App from Start to Finish - Creating App Icons with InkScape

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:




Xcode assigns its default icon to all new app projects. The default icon is a pattern of lines and circles on a white background. Setting a custom app icon is not essential until the publication stage. However  I am going to add it now as I will be seeing it throughout the development of my app and it adds a sense that it is a complete app and not just an example.