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`.
ReadIn iOS and using the Core Animation framework, one can create simple animations either implicitly or explicitly.
ReadHave you ever gotten a message from the compiler that reads: “Could not load NIB in bundle”?
ReadThe ?? 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.”
ReadA 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?
ReadIf 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.
ReadIf 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