Be it with a UICollectionView or a UITableView, working with reusable cells is a threshold concept any iOS developer has to get through. Therefore, this post will show you how to get up and running. Here is another post on how to create a custom interface file for your cell I will assume you know […]

SnapKit is Awesome!
Recently, I posted that I had stopped using storyboards in projects I’ve started. This feels a daunting prospect when you’re used to relying on storyboards. However, building views programatically it isn’t as bad as it first seems. This is especially true if you use a library to abstract the native Auto Layout API’s provided by […]

No More Storyboards In Xcode
Recently, in an effort to better understand layout code in iOS, I decided to ditch Storyboards in Xcode for a new project. Boy am I glad I did! First, Credit to Storyboards Before I throw them under the bus, Storyboards deserve some credit. They make putting together a simple layout and application flow very quick […]

Adding Domain Name To Digital Ocean Server
There are a few ways to manage your domain and direct it to the relevant location. This quick guide will show how you can point a single domain to a Digital Ocean droplet running a Ubuntu 16.04.4. Update Domain NameServers You should be able to do this with all/most domain registrars out there. In some […]

Face what…Ditching Social Media
On the 1st January 2018 I signed out of Facebook, and I’m yet to return… That was over two months ago, and that drug that consumed a large part of my day is all but a fleeting memory. Truth be told I never actually intended to stay away for this long. However, after the initial […]

CakePHP 3.x Ajax Response with jQuery
This post will look at rendering part of a page in a CakePHP application with an Ajax and jQuery. This technique can be employed in a number of situations. It’s particularly useful for loading (or refreshing) parts of a page that need to communicated with a controller and in turn a model. Another use is […]

Install CakePHP 3.x in Sub Directory htaccess mod_rewrite Rules
When you install a CakePHP app you need to tell your server to point to the webroot directory of the project. The most common way to do this on an apache server is to modify the 000-default.conf file accordingly. This is explain as part of this tutorial on how to setup a CakePHP app on Ubuntu […]

Creating Custom UITableViewCell With Xib Swift
This tutorial will look at how to setup a custom UITableViewCell class with an accompanying XIB (Interface Builder file). It will assume that you have a basic working knowledge of table views. So we’ll begin from having one set up. This will be the starting point for our ViewController class:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
import UIKit class ViewController: UIViewController { @IBOutlet weak var tableView: UITableView! override func viewDidLoad() { super.viewDidLoad() } } extension ViewController: UITableViewDataSource, UITableViewDelegate { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 10 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "Cell")! return cell } } |
Here we have a […]

Automatically Signing A User In With Firebase iOS
This tutorial will look at a nice way to handle user sign in with Firebase. More specifically – automatically sign them in on a device they have previously logged in on. For example, we don’t want to present a login screen each time the user opens the app. If they have logged in previously, then […]
