Quantcast
Channel: Andrew Bancroft
Browsing all 57 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Adding Buttons to the Navigation Bar with Storyboards

If you’re having trouble figuring out how to add buttons to the navigation bar in your Storyboard-based iOS app, my goal in this article is to help you through the process. Knowing what to click and...

View Article


Image may be NSFW.
Clik here to view.

Deploying Parse Dashboard

Below are steps that I’ve taken, myself, to deploy the Parse Dashboard to a cloud host, such as Azure, or Heroku. Jump to… Clone parse-dashboard git repository Run npm install Edit...

View Article


Image may be NSFW.
Clik here to view.

Listing Calendar Events with Event Kit and Swift

This is the continuation of a series of articles I’ve writing for Swift developers working with Event Kit. Supposing that after asking the user for permission to use their calendars, and even allowing...

View Article

Working with Swift: Adopt a Protocol or Pass a Function?

Without fail, any time Rob Napier (@cocoaphony) speaks or writes, I gain insight into new and deeper ways to solve problems with Swift. In January 2016, he gave a talk at dotSwift, and I wanted to...

View Article

Parse PFCloud –“JSON text did not start with array or object”

It’s always the little things that lead to flatter foreheads (or at least it is for me). Banging my head against the desk this evening working on a Parse migration, I finally figured out what was...

View Article


Swift Cheat Sheet for Dates, Formatters, & Date Components

Working with NSDate, NSDateFormatter, and NSDateComponents can be a little convoluted, so I’ve created myself a cheat sheet that will be updated as I discover new tips and tricks in this realm. The new...

View Article

Image may be NSFW.
Clik here to view.

Creating Calendar Events with Event Kit and Swift

Folks have asked more about working with Event Kit and Swift, so the series continues with this guide on how to create calendar events with Event Kit and Swift! Previous guides in the series include...

View Article

Extracting a PKCS7 Container for Receipt Validation with Swift

So you’ve prepared to test receipt validation by setting up your app in iTunes Connect. You’ve brought in a cryptography library like OpenSSL to be able to work with the PKCS #7 container that acts as...

View Article


Is Protocol Oriented Swift Better than Object Oriented Swift?

A question was asked on Reddit and showed up in my feed as I was browsing this weekend: What does protocol oriented programming mean, and why is it better than OOP? I really like a few things that were...

View Article


Force Unwrapping Swift Optionals: Code Smell!

Do you find your Swift code riddled with !‘s? I’m becoming more and more uncomfortable with seeing ! throughout my Swift code. It’s just a matter of time before it’s going to bite me. Often, I do it...

View Article

Image may be NSFW.
Clik here to view.

TypeScript Build Errors When Publishing ASP.Net Web Project

I had TypeScript files building and running perfectly when I’d debug locally, but when I changed over to publish the project, I got build errors galore: Cannot find module ___ TS6053 – File ___ not...

View Article

Image may be NSFW.
Clik here to view.

Using a Core Data Model in Swift Playgrounds

Did you know that you can tinker with Core Data inside of Swift playgrounds in Xcode? You can! Jeremiah Jessel, author at http://www.learncoredata.com, wrote up an article in 2015 detailing how you can...

View Article

Image may be NSFW.
Clik here to view.

Disabling Xcode’s OS-Level Debug Logging

Full credit to Russell Ivanovic for his tweet for figuring out how to disable Xcode 8’s extremely chatty debug console logging. I just wanted this here for my own reference, but perhaps it’s helpful to...

View Article


Entity Framework Tip – Specifying Decimal Precision

By default, Entity Framework takes the .Net decimal Type and maps it to SQL Server’s decimal(18,2) data type. If you’ve got a property on an Entity that is of Type decimal, but down in your database,...

View Article

Image may be NSFW.
Clik here to view.

Core Data Fundamentals with Swift

Core Data is an extremely powerful framework for managing and persisting data on your users’ devices. And let’s face it: saving data to your users’ devices is inevitable. The question is, which data...

View Article


Swift Tip – Accessing a User’s Documents Directory with URL Extension

When you need to access the documents directory on a user’s device, what do you do? In the past, I know I’ve gotten used to typing out the same set of code over and over throughout my apps. I know, I...

View Article

Image may be NSFW.
Clik here to view.

Creating the Core Data Stack with Backwards Compatibility in Swift

In 2017, we live in a world where there are still non-iOS 10 devices out in the wild. If your app is targeting an iOS version earlier than iOS 10, or macOS Sierra (10.12), you’ll be unable to take...

View Article


How to Unwrap Multiple Optionals with One If-Let in Swift

What do you do when you’ve got two (or more) optionals that you need to safely unwrap and work with? Code examples Suppose that you’ve got two arrays, both of which are optional. What I want to do...

View Article

3 Effective Ways to Keep You Focused as a Creator

Away with the Phone! Put your phone away. Far away. Not in your pocket. Not on your desk. In a drawer – away from you. Disconnect. You should be able to tell if you’ve got an emergency call coming in,...

View Article

Image may be NSFW.
Clik here to view.

Solving React Native’s “No bundle url present” Error

I hit the “No bundle url present.” roadblock today and had to dig a bit to find the solution. I’m going to describe how I encountered the problem, and provide the solution that’s worked more than once...

View Article
Browsing all 57 articles
Browse latest View live