Swift 4 Cookbook: The Ultimate Collection of iOS Quick Fixes
4.7 (121 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,283 students enrolled

Swift 4 Cookbook: The Ultimate Collection of iOS Quick Fixes

Get instant, proven solutions and answers to over 300 common iOS, Swift 4, and Xcode problems
4.7 (121 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,283 students enrolled
Created by Stephen DeStefano
Last updated 10/2019
English
English [Auto-generated]
Current price: $22.99 Original price: $34.99 Discount: 34% off
16 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 6 hours on-demand video
  • 339 downloadable resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Find quick fixes for real-world Swift and UIKit problems
  • Understand key techniques such as weak variables, guard, and defer
  • Build your own library of solutions for common problems
Course content
Expand all 340 lectures 06:10:34
+ Arrays
11 lectures 06:27
How do you create multi-dimensional arrays?
01:07
How to find an item in an array using indexOf()
00:33
How to loop through items in an array
00:24
How to shuffle an array in iOS 8 and below
00:18
How to shuffle an array using GameplayKit
00:18
How to sort an array using sort()
00:42
How to tell if an array contains an object
00:20
+ CALayer
6 lectures 07:22
How to create keyFrame animations using CAKeyFrameAnimation
01:18
How to draw shapes using CAShapeLayer
00:30
How to emit particles using CAEmitterLayer
02:10
How to round the corners of a UIView
01:05
+ Core Graphics
12 lectures 08:31
How to calculate the distance between two CGPoints
00:58
How to calculate the Manhattan distance between two CGPoints
00:48
How to draw a circle using Core Graphics: addEllipse(in:)
00:39
How to draw a square using Core Graphics - addRect()
00:46
How to draw a text string using Core Graphics
00:26
How to draw lines in Core Graphics - move(to) and addLine(to)
00:50
How to find a scale from a CGAffineTransform
00:15
How to find the rotation from a CGAffineTransform
00:14
How to find the translation from a CGAffineTransform
00:14
How to render a PDF to an image
01:00
How to use Core Graphics blend modes to draw a UIImage differently
02:01
+ Games
15 lectures 15:17
How to add pixel-perfect physics to an SKSpriteNode
00:37
How to change SKScene with a transition - presentScene()
01:37
How to create 3D audio sound using SKAudioNode
01:34
How to create a SpriteKit texture atlas in Xcode
01:40
How to create shapes using SKShapeNode
00:35
How to find a touch's location in a node using location(in-)
01:00
How to roll a dice using GameplayKit and GKRandomDistribution
01:08
How to run SKActions in a group
00:33
How to run SKActions in a sequence
00:34
How to stop an SKPhysicsBody responding to physics using its dynamic property
01:28
How to write text using SKLabelNode
00:54
+ Language
62 lectures 58:37
Fixing "Ambiguous reference to member when using ceil or round"
00:50
Fixing "Class ViewController has no initializers"
01:16
How to check the Swift version at compile time
00:38
How to compare two tuples for equality
00:47
How to convert a float to a CGFloat
00:25
How to convert a float to an int
00:14
How to convert a string to a double
00:10
How to convert a string to a float
00:10
How to convert a string to an int
00:17
How to convert a string to an NSString
00:35
How to convert an int to a float
00:15
How to convert an int to a string
00:17
How to convert an NSRange to a Swift string index
00:41
How to create an Objective-C bridging header to use code in Swift
00:52
How to delay execution of code using the defer keyword
00:32
How to find the maximum of three numbers
00:15
How to find the maximum of two numbers
00:16
How to find the minimum of three numbers
00:15
How to find the minimum of two numbers
00:11
How to fix “argument of #selector refers to instance method that is not exposed
02:53
How to force your program to crash with assert()
01:25
How to install a beta version of Swift
01:55
How to print debug text in Swift
00:21
How to unwrap an optional in Swift
00:45
How to use compiler directives to detect the iOS simulator
00:38
How to use the try/catch in Swift to handle exceptions
01:18
How to use #available to check for API availability
00:55
Tips for android developers switching to Swift
02:19
Using stride() to loop over a range of numbers
00:43
What are lazy variables?
03:01
What are property observers?
00:23
What are the changes in Swift 1.2
01:43
What are the changes in Swift 2.0
00:51
What are the changes in Swift 2.2
00:44
What are the changes in Swift 3.0
01:13
What does an exclamation mark mean?
00:34
What does override mean?
00:45
What does unowned mean?
00:40
What does weak mean?
01:10
What is a CGFloat?
00:31
What is a closure?
01:45
What is a delegate in iOS?
00:52
What is a dictionary?
00:54
What is a double?
00:30
What is a float?
00:36
What is a nib?
00:35
What is a protocol?
01:12
What is a selector?
00:47
What is a storyboard?
01:36
What is a struct?
01:25
What is a tuple?
01:27
What is an optional value in Swift?
01:35
What is AnyObject?
01:16
What is copy on write?
01:30
What is the difference between let and var?
00:39
What is the nil coalescing operator?
00:55
What is trailing closure syntax?
01:53
What is whole module optimization?
00:26
What's the difference between let and var?
00:39
+ Libraries
3 lectures 10:15
How to make empty UITableViews look more attractive using DZNEmptyDataSet
03:27
How to parse JSON using SwiftyJSON
02:26
+ Location
6 lectures 12:20
How to add a button to an MKMapView annotation
01:45
How to add an MKMapView using MapKit
00:59
How to detect iBeacons
05:10
How to find directions using MKMapView and MKDirectionsRequest
02:13
How to make an iPhone transmit an iBeacon
01:25
How to request a user's location only once using requestLocation
00:48
+ Media
19 lectures 27:59
How to choose a photo from the camera roll using UIImagePickerController
03:00
How to convert text to speech using AVSpeechSynthesizer, and AVSpeechUtterance
00:53
How to create a barcode
00:38
How to create a PDF417 barcode
00:43
How to create a QR code
00:43
How to filter images using Core Image and CIFilter
01:19
How to highlight text to speech words being read using AVSpeechSynthesizer
00:50
How to make resizable images using resizableImage(withCapInsets)
01:04
How to play sounds using AVAudioPlayer
01:32
How to record audio using AVAudioRecorder
04:21
How to record user videos using ReplayKit
01:41
How to render a UIView to a UIImage
00:33
How to save a UIImage to a file using UIImagePNGRepresentation
01:52
How to scan a barcode
01:26
How to scan a QR code
01:25
How to turn on the camera flashlight to make a torch
00:46
UIImageWriteToSavedPhotosAlbum()- how to write to the iOS photo album
01:59
+ Strings
30 lectures 23:30
How to calculate the ROT13 of a string
01:54
How to capitalize the first letter of a string
00:22
How to capitalize words in a string using capitalized
00:21
How to check whether a string contains any words from an array
00:58
How to concatenate strings to make one joined string
00:43
How to convert a string to a safe format for URL slugs and filenames
01:38
How to convert a string to lowercase letters
00:16
How to convert a string to uppercase letters
00:13
How to detect a URL in a String using NSDataDetector
00:21
How to display different strings based on available space using variantFitting
02:39
How to get the length of a string
00:18
How to get the lines in a string as an array
00:31
How to load a string from a file in your bundle
00:40
How to load a string from a website URL
00:57
How to loop through letters in a string
00:24
How to measure a string for Objective-C code
00:46
How to parse a sentence using NSLinguisticTagger
01:12
How to read a single character from a string
00:37
How to remove a prefix from a string
00:33
How to repeat a string
00:18
How to reverse a string using reversed()
00:20
How to run a case-insensitive search for one string inside another
00:53
How to save a string to a file on disk with write(to-)
01:43
How to specify floating-point precision in a string
00:48
How to split a string into an array- components(separatedBy-)
00:25
How to test localization by setting a debug locale and double length pseudo
01:11
How to trim whitespace in a string
00:33
How to use string interpolation to combine strings, integers and doubles
00:52
NSRegularExpression- How to match regular expressions in strings
00:41
Replacing text in a string using replacingOccurrences(of-)
00:23
Requirements
  • You should already have some familiarity with Swift
Description

If you're tired of scrolling through Stack Overflow trying to resuscitate ancient Swift 2.0 code, this is the perfect course for you: over 300 of the most common questions for Swift, iOS, and Xcode get answered right here, with all code fully updated for iOS 11 and Swift 4.

This is real, hands-on stuff that gets right to the point: 

  • How do you use the new Codable protocol to load and save your data?
  • How can you add real-time shadows to your views?
  • How do you add section headers to table views?
  • How do you record audio using AVAudioRecorder?
  • How can you add particle effects to UIKit apps? 
  • How can you make an action repeat itself?

All those and more are covered right here, right before your eyes.

Organized for your convenience

With such a huge library of videos to learn from, you might be wondering how fast it can really be to find solutions inside this cookbook collection. Well, let me tell you: it's fast. The whole course is organized by segments such as CALayer, SpriteKit, and UIKit, so in one click you narrow your search down to what interests you most.

And from there you can either jump straight to the solution you care about – "how can I rotate my view?" – or just browse the category to stumble upon all-new things you haven't even tried before.

Tried and tested solutions

Anyone could put together some Swift code examples and call it a cookbook, but this collection is different.

First, this is the largest collection of its type in the world – with over 300 categorized solutions, this is a simply unbeatable problem-solving resource.

Second, this course comes with complete, downloadable source code for all solutions, so you can try them out easily.

Third, these solutions are proven: 10,000 students have already learned Swift from me, so I know the problems they hit time and time again. This course was crafted specifically to solve all the most common problems developers hit with UIKit, SpriteKit, Swift, and more.

But most importantly…

You're guaranteed incredible quality. No more scrabbling around Stack Overflow trying to find fixes, no more reading through ten pages of Google search results to find what you need.

Instead, the Swift 4 Cookbook gives you all the fixes you need to take your apps to the next level, all fully revised and updated for Swift 4 and iOS 11.

Who this course is for:
  • This course was designed to help developers who need quick answers to real Swift and UIKit problems.