Autoplay
Autocomplete
Previous Lesson
Complete and Continue
The Swift 3 Cookbook of Code
LINKS FOR AMAZING SWIFTUI RESOURCES
LINKS FOR AMAZING SWIFTUI RESOURCES
Swift Cookbook Course Introduction
Promo Video
Section 1 - Intro - How to use the course
Section 2 - Arrays
How do you create multi dimensional arrays?
How to count objects in a set using NSCountedSet
How to enumerate items in an array
How to find an item in an array using index(of)
How to join an array of strings into a single string
How to loop through items in array
How to shuffle an array in iOS 8 and below
How to shuffle an array in iOS 9 using GameplayKit
How to sort an array using sort()
How to tell if an array contains an object
How to loop through an array in reverse
Section 3 - CALayer
How to add a border outline color to a UIView
How to draw color gradients using CAGradientLayer
How to draw shapes using CAShapeLayer
How to round the corners of a UIView
How to emit particles using CAEmitterLayer
How to create keyframe animations using CAKeyframeAnimation
Section 4 - Core Graphics
How to draw a text string using Core Graphics
How to draw lines in Core Graphics with move(to) and addLine(to)
How to draw a square using Core Graphics addRect()
How to calculate the Manhattan distance between two CGPoints
How to draw a circle using Core Graphics - addEllipse(in)
How to render a PDF to an image
How to find the translation from a CGAffineTransform
How to compare two CGRects with equalTo()
How to use Core Graphics blend modes to draw a UIImage differently
How to find the rotation from a CGAffineTransform
How to find a scale from a CGAffineTransform
How to calculate the distance between two CGPoints
Section 5 - Games
How to roll a dice using GameplayKit and GKRandomDistribution
How to change SKScene with a transition - presentScene()
How to add pixel perfect physics to an SKSpriteNode
How to create shapes using SKShapeNode
How to emit particles using SKEmitterNode
How to find a touches location in a node using location(in)
How to create 3D audio sound using SKAudioNode
How to color an SKSpriteNode using colorBlendFactor
How to run SKActions in a sequence
How to run SKActions in a group
How to write text using SKLabelNode
How to generate a random number with GKRandomSource
How to add physics to an SKSpriteNode
How to stop an SKPhysicsBody responding to physics using its dynamic property
Section 6 - Language
Fixing "Ambiguous reference to member when using ceil or round"
How to find the minimum of three numbers
How to find the minimum of two numbers
How to find the maximum of three numbers
How to find the maximum of two numbers
How to convert a string to an int
How to convert an NSRange to a Swift string index
How to convert a string to an NSString
What are lazy variables?
How to convert an int to a string
How to convert a float to a CGFloat
How to convert a string to a double
How to convert a string to a float
How to convert a float to an int
How to convert an int to a float
How to create an Objective C bridging header to use code in Swift
Fixing "Class ViewController has no initializers"
How to check for valid method input using the guard keyword
How to check the Swift version at compile time
How to force your program to crash with assert()
How to compare two tuples for equality
How to delay execution of code using the defer keyword
How to print debug text in Swift
What is a nib?
How to unwrap an optional in swift
What are property observers
What is a delegate in iOS?
How to use compiler directives to detect the iOS simulator
What is the nil coalescing operator?
What is a CGFloat?
What is a selector?
How to install a beta version of swift
What is trailing closure syntax?
How to use the try:catch in Swift to handle exceptions
Tips for android developers switching to Swift
What does unowned mean?
Using stride() to loop over a range of numbers
What is a Closure
What is a protocol?
What does weak mean?
Section 7 - Libraries
How to parse JSON using SwiftyJSON
How to get a Cover Flow effect on iOS
How to make empty UITableViews look more attractive using DZNEmptyDataSet
Section 8 - Location
How do you make an iPhone transmit an iBeacon
How to add a button to an MKMapView annotation
How to request our users location only ones using requestLocation
How to add an MKMapView using MapKit
How to detect iBeacons
How to find directions using MKMapView and MKDirectionsRequest
Section 9 - Media
How to filter images using Core Image and CIFilter
How to create a barcode
How to make resizable images using resizableImageWithCapInsets()
How to save a UIImage to a file using UIImagePNGRepresenttation
How to scan a QR code
How to choose a photo from the camera roll using UIImagePickerController
UIImageWriteToSavedPhotosAlbum() how to write to the iOS photo album
How to convert text to speech using AVSpeechSynthesizer, AVSpeechUtterance and AVSpeechSythesisVoice
How to create a PDF417 barcode
CIDectorTypeFace - How to detect faces in a UIImage
How to render a UIView to a UIImage
How to scan a barcode
How to play sounds using AVAudioPlayer
How to create a QR code
How to record audio using AVAudioRecorder
How to record user videos using ReplayKit
How to turn on the camera flashlight to make a torch
How to highlight text to speech words being read using AVSpeechSynthesizer
Section 10 - Strings
How to loop through letters in a string
How to capitalize words in a string using capitalizedString
How to test localization by setting a debug locale and double length pseudo-language
How to use string interpolation to combine strings, integers and doubles
How to load a string from a file in your bundle
How to specify floating-point precision in a string
How to get the length of a string
How to detect a URL in a String using NSDataDetector
How to parse a sentence using NSLinguisticTagger
How to load a string from a website URL
How to repeat a string
How to trim whitespace in a string
How to split a string into an array - componentsSeperatedByString()
How to convert a string to lowercase letters
How to save a string to a file on disk with write(to)
How to convert a string to uppercase letters
Replacing text in a string using replacingOccurrences(of-)
How to measure a string
NSRegularExpression - how to match regular expressions in strings
How to reverse a string using reversed()
Section 11 - System
How to post messages using NotificationCenter
How to handle the HTTPS requirements in iOS with App Transport Security
How to run code after a delay using asyncAfter() and perform()
How to cancel a delayed perform() call
How to create rich formatted text strings using NSAttributedString
How to store NSUserDefaults options in iCloud
How to use Core Spotlight to index content in your app
How to run code asynchronously using GCD async()
How to read the contents of a directory using FileManager
How to detect which country a user is in
How to cache data using NSCache
How to generate random numbers in iOS 8 and below
How to make tappable links in NSAttributedString
How to create a peer to peer network using the multipeer connectivity framework
How to make an action repeat using Timer
How to convert units using Unit and Measurement
How to use Core Motion to read accelerometer data
How to open a URL in Safari
How to synchronize code to drawing using CADisplayLink
How to run code at a specific time
How to format dates with an ordinal suffix using NunberFormatters ordinalStyle
How do you read from the command line
How to spell out numbers using NumberFormatters SpellOut style
How to pass data between two view controllers
How to use Touch ID to authenticate users by fingerprint
How to find the users documents directory
How to copy objects in Swift using copy()
How to copy text to the clipboard using UIPasteboard
How to stop the screen from going to sleep
How to detect low power mode is enabled
How to save user settings using UserDefaults
How to generate a random identifier using UUID
How to identify an iOS device uniquely with identifierForVendor
NSTextEffectLetterpressStyle - how to add letterpress effect to text
How to parse JSON using JSONSerialization
How to insert images into an attributed string with NSTextAttachment
How to set local alerts using UNNotificationCenter
How to detect when your app moves to the background
How to save and load objects with NSKeyedArchiver and NSKeyedUnarchiver
How to run code on the main thread using GCD async()
Section 12 - UIColor
How to create custom colors using UIColor RGB and hues
How to convert a hex color to a UIColor
How to convert a HTML name string into a UIColor
Section 13 - UIKit
How to make UITableViewCells auto resize to their content
How to hide the navigation bar using hidesBarOnSwipe
How to show and hide a toolbar inside a UINavigationController
How to generate haptic feedback with UIFeedbackGenerator
How to give UITableViewCells a selected color other than grey
How to hide the navigation bar using hidesBarsOnTap
How to share content with UIActivityViewController
How to make UITableViewCell separators go edge to edge
What does the message "Simulator user has requested new graphics quality - 100" mean?
How to give a UINavigationBar a background image - setBackgroundImage()
What are the different UIStackView distribution types
How to hide passwords in a UITextField
How to send an email
How to read a title from UIPickerView using titleForRow
How to hide the status bar
How to load a HTML string into a WKWebView or UIWebView - loadHTMLString()
How to flip a UIView with 3D effect - transitionWithView()
Fixing "unable to dequeue a cell with identifier
How to print using UIActivityViewController
How to pad a UITextView by setting it's text container inset
How to stop empty row separators appearing in UITableView
How to register a cell for UITableViewCell reuse
How to add a UITextField to a UIAlertController
How to give a UIStackView a background color
How to recolor UIImages using template images and withRenderingMode()
How to make the master pane always visible in a UISplitViewController
How to use light text color in the status bar
How to add a bar button to a navigation bar
How to stop your view going under the navigation bar using edgesForExtendedLayout
How to limit the number of characters in a UITextField or UITextView
How to share content with the Social framework and SLComposeViewController
How to register a cell for UICollectionView reuse
How to add a flexible space to a UIBarButtonItem
How to scale, stretch, move and rotate UIViews using CGAffineTransform
How to let users tap on a UITableViewCell while editing is enabled
How to set a custom title view in a UINavigationBar
How to remove a UIView from its superview with removeFromSuperview()
How to run JavaScript on a UIWebView with stringByEvaluatingJavaScript(from)
How to make a clear button appear in a textfield
How to put a background picture behind UITableViewController
How to detect when the back button is tapped
How to respond to the device being shaken
How to swipe to delete UITableViewCells
How to animate when your size class changes - willTransition(to)
How to remove cells from a UITableView
How to style the font in a UINavigationBars title
What are size classes?
How to measure touch strength using 3D Touch
How to set the tabs in a UITabBarController
How to stop auto layout and auto resizing masks conflicting - translatesAutoresizingMaskIntoConstraints
How to set the tint color of a UIView
How to set prompt text in a navigation bar
How to adjust image content mode using aspect fill, aspect fit and scale scaling
How to use SFSafariViewController to show web pages in your app
What is content compression resistance?
How to stop users selecting text in a UIWebView or WKWebView
How to use Dynamic Type to resize your apps text
Why can I not register for push notifications?
Fixing "Failed to obtain a cell from its "DataSource"
How to add blur and vibrancy using UIVisualEffectView
How to create a parallax effect in UIKit
How do you show a modal view controller when a UITabBarController tab is tapped?
How to add a custom view to a UIBarButtonItem
How to add a shadow to a UIView
How to add retina and retina HD graphics to your project
How to adjust a UIScrollView to fit the keyboard
How to support pinch to zoom in a UIScrollView
How to animate views with spring dampening using animateWithDuration()
How to add a section header to a table view
How to animate views using animate(withDuration)
How to bring a subView to the front of a UIView
How to create popover menus using UIPopoverPresentaionController
Changing which UITabBarController tabs can be edited
How to detect a double tap gesture
How to customize swipe edit buttons in a UITableView
How to check if a string is spelled correctly using UITextChecker
How to use IBInspectable to adjust values in interface builder
How to create auto layout constraints in code - constraintsWithVisualFormat()
How to convert a CGPoint in one UIView to another view using convert()
How to dim the screen
How to add a UIApplicationShortcutItem quick action for 3D Touch
How to add a button to a UITableViewCell
How to animate views using UIViewPropertyAnimator
How to detect edge swipes
How to deselect a UITableViewCell using clearsSelectionOnViewWillAppear
How to create custom menus using UIMenuController
How to change the scroll indicator inset for a UIScrollView
How to find a UIView subview using viewWithTag()
How to find a touch's location in a view with location(in)
How to draw custom views in interface builder using IBDesignable
How to create a page curl affect using UIPageViewController
How to make a button glow when tapped with showsTouchWhenHighlighted
Section 14 - WKWebView
What's the difference between UIWebView and WKWebView
How to run JavaScript on a WKWebView with evaluateJavaScript()
How to enable back and forward swiping gestures in WKWebView
How to monitor WKWebView page load progress using key-value observing
Section 15 - Xcode
How to load assets from Xcode assets catalogs
How to debug view layouts in Xcode
How to create exception break points in Xcode
Section 16 - Hacking with swift - A must have resource
Hacking with swift - A must have resource
How to count objects in a set using NSCountedSet
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock