Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ Microsoft AZ-900
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Personal Development Mindfulness Personal Transformation Life Purpose Meditation CBT Emotional Intelligence
Web Development JavaScript React CSS Angular PHP Node.Js WordPress Vue JS
Google Flutter Android Development iOS Development React Native Swift Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
Microsoft Power BI SQL Tableau Business Analysis Data Modeling Business Intelligence MySQL Data Analysis Blockchain
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Business Plan Startup Online Business Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
Development Mobile Development iOS Development

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
Rating: 5.0 out of 55.0 (125 ratings)
2,308 students
Created by Stephen DeStefano
Last updated 10/2019
English
English [Auto]
30-Day Money-Back Guarantee

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

17 sections • 340 lectures • 6h 10m total length

  • Preview02:41

  • How do you create multi-dimensional arrays?
    01:07
  • Preview01:02
  • Preview00:25
  • How to find an item in an array using indexOf()
    00:33
  • Preview00:36
  • How to loop through items in an array
    00:24
  • Preview00:42
  • 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

  • Preview00:49
  • How to create keyFrame animations using CAKeyFrameAnimation
    01:18
  • Preview01:30
  • 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

  • How to calculate the distance between two CGPoints
    00:58
  • How to calculate the Manhattan distance between two CGPoints
    00:48
  • Preview00:20
  • 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

  • Preview00:52
  • How to add pixel-perfect physics to an SKSpriteNode
    00:37
  • How to change SKScene with a transition - presentScene()
    01:37
  • Preview00:56
  • 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
  • Preview00:49
  • How to find a touch's location in a node using location(in-)
    01:00
  • Preview01: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

  • Fixing "Ambiguous reference to member when using ceil or round"
    00:50
  • Fixing "Class ViewController has no initializers"
    01:16
  • Preview02:05
  • 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
  • Preview01:10
  • 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
  • Preview01:07
  • 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

  • Preview04:22
  • How to make empty UITableViews look more attractive using DZNEmptyDataSet
    03:27
  • How to parse JSON using SwiftyJSON
    02:26

  • 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

  • Preview01:01
  • 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
  • Preview02:13
  • 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

  • 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.

Instructor

Stephen DeStefano
iOS / macOS Developer / Swift Instructor
Stephen DeStefano
  • 4.4 Instructor Rating
  • 2,580 Reviews
  • 20,124 Students
  • 16 Courses

My name is Steve DeStefano, a long time iOS / macOS /watchOS instructor, and I created a SwiftUI course thats geared for the beginner and takes him all the way to expert level in a very short amount of time. You will start off by learning the Swift language, then the Xcode interface, and then we move into building apps, all using Apple's intuitive new design tools and framework, SwiftUI.

And if your a big fan of Paul Hudson (and who isn't :) then check out my other courses, these were created from his best selling books and working with directly with Paul. Paul, as you may know, is the award winning Swift programmer who's teaching methods has been hailed as one of the best ways to learn how to code in the shortest amount of time, and he has received high praise from the creator of the Swift language, Chris Lattner. I offer a unique way of presenting his material, which is with callouts, highlighting and graphics, all to make it more understandable and easy to follow the path of the code. I've transferred many of his best selling iOS / macOS / watchOS / tvOS, and other books into lecture style courses, so you're getting the best instruction available for all of Apple's platforms.

Along with my passion for coding, i also enjoy working with and training dogs, and together with my partner and master dog trainer, Akiko, we have put together the first Pomsky Care and training course here on Udemy. This is an in depth care and training course created for this relatively new designer dog breed, the cute and cuddly Pomsky, which will give you the tools and knowledge you need to find, train, and care for your perfect Pomsky.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.