Live Chat
Monday - Friday 8am - 6pm EST Chat Now
Contact Us
Monday - Friday 8am - 8pm EST 1-800-268-7737 Other Contact Options
Checkout

Cart () Loading...

    • Quantity:
    • Delivery:
    • Dates:
    • Location:

    $

Defensive Programming in iOS

This course covers defensive programming techniques for creating iOS applications using Objective-C and Swift.

GK# 7298

Course Overview

TOP

Defensive Programming has to do with using coding practices and techniques that allow us to create programs that are reliable, resilient, maintainable, easily tested, and efficient.It considers an approach to programming that aims to minimize the possibility of the unexpected occurring at run time, by anticipating and preparing for potential issues.This path of courses covers general defensive programming techniques that can be applied when creating iOS applications using both Objective-C and Swift.

Schedule

TOP
  • Delivery Format:
  • Date:
  • Location:
  • Access Period:

$

What You'll Learn

TOP
  • Thinking Defensively about Functions, Methods, and Input
  • Managing Network Interaction
  • Errors, Exceptions, and Testing
  • Protecting Data in iOS Apps

Outline

TOP
Viewing outline for:

On-Demand Outline

Thinking Defensively about Functions, Methods, and Input

  • Create code that handles file inputs to an iOS app
  • Create code that handles url scheme inputs to an iOS app
  • Validate user-provided input using Objective-C
  • Use a real-time approach to validating user-provided input in Objective-C
  • Use secure coding principles to guard against format string attacks
  • Restrict free navigation around the Web based on user input in a UIWebView
  • Use best practices to name functions and methods in Objective-C
  • Use best practices to name accessor methods in Objective-C
  • Use best practices to name delegate methods in Objective-C
  • Reduce method complexity in iOS apps using Objective-C
  • Overload a function to reduce code complexity in Swift
  • Design functions that have a single and defined focus
  • Identify and use different class naming standards in Objective-C
  • Create and use constants in Objective-C
  • Create and use constants in Swift
  • Create and use resource files in an iOS app
  • Easily store and retrieve data from the defaults database
  • Recognize how using brackets can protect against potential bugs
  • Design while loops that are not vulnerable to running forever
  • Design for loops that are not vulnerable to running forever
  • Identify and avoid bugs caused by altered loop variables
  • Handle various types of inputs to an iOS app

Managing Network Interaction

  • Create a TCP client connection from an iOS app
  • Send and receive data over a TCP connection in an iOS app
  • Determine when an iOS app can and cannot access the Internet
  • Determine when an iOS app can and cannot reach a specific IP address
  • Determine when an iOS app can and cannot access the Internet
  • Install and configure the network link conditioner to be able to test iOS apps in different connection conditions
  • Use CF functions to encode URLs
  • Use CF functions to decode URLs
  • Use NSURLConnection to make synchronous and asynchronous network calls
  • Use NSURLConnection to make asynchronous network calls without using custom delegates
  • Create and apply a configuration object to an NSURLSession instance
  • Request a URL in a simple manner using NSURLSession and system delegates
  • Request a URL in a flexible manner using NSURLSession and custom delegates
  • Stop script execution in any HTML loaded into a WebView
  • Disallow Internet traffic over cellular connections in an iOS app
  • Capture and handle redirect responses from a server
  • Use NSURLSession to reliably download and save files in an iOS app
  • Use NSURLSession to handle users stopping and starting download operations
  • Use NSURLSession to handle downloads that fail
  • Use NSURLSession to upload files to a web server
  • Use common techniques for managing network interaction

Errors, Exceptions, and Testing

  • Use error information returned indirectly from methods
  • Test for specific kinds of errors based on domains and codes
  • Create and return error objects from custom methods
  • Use alert views to inform end users of error information
  • Use an underlying error object to find out more detail about an error that has occurred
  • Create and throw/raise exceptions in iOS apps
  • Catch and handle exceptions in iOS apps
  • Use the @finally directive to guarantee code execution
  • Convert a raised exception to an error when appropriate
  • Capture and handle specific types of exceptions locally
  • Create an XCTestCase Class using Xcode and Objective-C
  • Create an XCTestCase Class using Xcode and Swift
  • Create, execute, and check results of unit tests using Xcode and Objective-C
  • Creating and executing unit tests in Swift
  • Unit test private methods in custom classes
  • How to create tests that measure execution time of code
  • Create and execute asynchronous tests
  • Recognize how to initiate the creation of an automated test of an iOS app
  • Access interface elements by navigating the element hierarchy
  • Use accessibility labels to interact with iOS app elements when automation testing
  • Select and tap interface elements in automation testing
  • Define pass and fail benchmarks for automation testing
  • Use the logElementTree method to understand an app's view hierarchy
  • Import previously created automation scripts for reuse
  • Create assertions using NSAssert
  • Create assertions using the assert function
  • Create assertions in Swift
  • Work with creating and managing errors and exceptions

Protecting Data in iOS Apps

  • Obscure sensitive data from plain sight in an iOS app interface
  • Use alert view styles to collect sensitive user data
  • Obscure sensitive data when using alert controllers
  • Use Touch ID authentication in iOS apps on supported devices
  • Recognize how to write text data to files while reducing the risk of data corruption
  • Recognize how to write binary data to files while reducing the risk of data corruption
  • Use built-in hardware encryption to store text files securely on disk
  • Use built-in hardware encryption to store binary files securely on disk
  • Register for notifications and delegate methods that indicate when protected files change status
  • Create and access protected files while an iOS device is in the background
  • Securely store sensitive data using the iOS keychain
  • Search and retrieve sensitive data from the iOS keychain
  • Update sensitive data stored in the iOS keychain
  • Remove sensitive data stored in the iOS keychain
  • Define when keychain items are accessible depending on the lock status of an iOS device
  • Use the Randomization Services API to generate random numbers
  • Create an MD5 hash using the Common Crypto library
  • Create an SHA hash using the Common Crypto library
  • Use the RNCryptor library to encrypt and decrypt data in an iOS app
  • Use the Certificate, Key, and Trust functions to generate an asymmetric key pair
  • Use the public key of an asymmetric key pair to encrypt data
  • Use the private key of an asymmetric key pair to decrypt data
  • Create and manage iOS keychain items

Who Should Attend

TOP

iOS developers who have experience creating apps using the Objective-C and Swift languages, and who are interested in learning to employ defensive programming techniques for iOS apps.

Course Delivery

This course is available in the following formats:

On-Demand

Train at your own pace with 24/7 access to courses that help you acquire must-have technology skills.



Request this course in a different delivery format.
Enroll