iOS

iOS

Capture screenshot or record video on the iOS Simulator using Terminal

Simply run some commands if you need to capture a screenshot or record a video of your app from the iOS simulator.

Read
iOS

iOS Device Rotation Methods

There are a few ways of being notified when the orientation of your iOS device has changed - let's take a look at `viewWillTransitionTo` and `orientationDidChangeNotification`.

Read
iOS

What is Automatic Reference Counting (ARC)?

When you create an object, that object is given a 'retain count' or 'reference count'. What this count is keeping track of is 'who or what variables care about that object right now?'.

Read
iOS

Implicit vs. Explicit Animations in iOS

In iOS and using the Core Animation framework, one can create simple animations either implicitly or explicitly.

Read
iOS

Xcode “Could not load NIB in bundle” error

Have you ever gotten a message from the compiler that reads: “Could not load NIB in bundle”?

Read
iOS

The double question marks in Swift ??

The ?? in Swift is called the “nil-coalescing operator”. Let’s break that down. According to the Apple documentation: “The nil-coalescing operator (a ?? b) unwraps an optional a if it contains a value, or returns a default value b if a is nil. The expression a is always of an optional type. The expression b must match the type that is stored inside a.”

Read
iOS

Swift guard statement

A guard statement is a way of exiting a program if a condition is not met. Also called the Bouncer Pattern, it takes care of the problem before it even enters the club. Why is this helpful?

Read
iOS

What are protocols (Swift)?

If you are a budding programmer, you may see the word ‘protocol’ while sifting through tutorials or other resources. I’ll do my best to break that down and to provide some simple examples for your understanding.

Read
iOS

How to install Cocoapods in your iOS project

If you’re a beginner, you probably have wondered how to set up Cocoapods in your iOS project. Cocoapods is a dependency manager for Swift & Objective-C, and has over 24,000 libraries to spice up your application. It’s incredibly helpful to integrate code that has already been written to maximize your time working.

Read