How to use the UIWebView in iOS Applications
More and more iOS applications now have their own internal web browser using UIWebView to get around multi-tasking issues on the devices. I'm going to show you how you too can include a simple web viewer in an application. Perfect for things like online help pages or sign-up account creation without taking the user away […]
Basic File Reading and Writing Using Swift in iOS 8
At some point every application developer has to start dealing with writing and reading to and from the file system, which is actually pretty straight forward with iOS 8. Here is a super simple example using a basic string. We will get more complex in the future!
Swift Playground Tip – Using External Code Files
One of the nice additions to the XCode 6.3 release was the introduction of a feature in Swift Playgrounds that might not be immediately obvious to you but is immensely useful. You can now easily include code in separate files. This means you can test small snippets or entire custom classes and then use that […]
Thoughts on Focusing and Reducing
I do not always think about direct development i.e. code and design when it comes to my posts. There are times that we need to talk about other areas that are important, this is one of those. Something that I have found myself thinking about the past month is the journey we all take in […]
Swift Access Control – Private, Public and Internal
Access Control in swift, sounds like a 90's hacker movie term right! Well in reality it is simply the idea of saying what can and cannot be accessed in a swift classes A simple example would be that you create a class for someone else to use and you have methods that you use internally […]
UIPickerView – Getting Started
There are some things you will most likely use a lot, it seems that one of those is the UIPickerView. This is pretty straight forward to start using, so let's take a look. In this tutorial I'm going to show you how to create a UIPickerView control and power it up with some simple data, […]
Display an Alert with Text Field Entry
In my previous post titled ‘Display an Alert or Action Sheet Using Swift in iOS 8' I showed you how to create and display an alert using Swift and iOS 8. In this post I will take that a step further and show you how to display a text entry field in an alert to […]
Display an Alert or Action Sheet Using Swift in iOS 8
In this example I will show you how to make an alert appear in a Swift based iOS application. Very straight forward and something you are going to need at some point. For this example I will make an alert appear showing the text entered as the message along with two possible actions, one clears […]
Debugging Swift with Xcode
Anyone that writes code with no errors need not continue reading! For the rest of us there is LLDB (Low Level Debugger) and the Swift REPL (Read-Eval-Print-Loop) to make finding and fixing our code almost fun, well almost. The Swift REPL is built on top of LLDB so that means we have a nice interactive […]
Are printed technical books still relevant?
Over the past few months, I have found my bookshelves full of printed technical books and materials getting less, and here is why. In the latter part of every year, I have a ritual of pulling the books on old versions of no longer-needed programming languages out and donating them to the local library (please, […]