Amazon cover image
Image from Amazon.com

Mastering Swift 2 : dive into the latest release of the Swift programming language with this advanced Apple development book for creating exceptional iOS and OS X applications / Jon Hoffman.

By: Material type: TextTextSeries: Community experience distilledPublisher: Birmingham, UK : Packt Publishing, 2015Edition: Second editionDescription: 1 online resource (1 volume) : illustrationsContent type:
  • text
Media type:
  • computer
Carrier type:
  • online resource
ISBN:
  • 9781785888540
  • 1785888544
  • 1785886037
  • 9781785886034
Other title:
  • Mastering Swift two
Subject(s): Genre/Form: Additional physical formats: Print version:: Mastering Swift 2.DDC classification:
  • 005.13/3 23
LOC classification:
  • QA76.73.S95
Online resources:
Contents:
Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Taking the First Steps with Swift ; What is Swift?; Swift features; Playgrounds; Getting started with Playgrounds; iOS and OS X Playgrounds; Showing images in a Playground; Creating and displaying graphs in Playgrounds; What Playgrounds are not; Swift language syntax; Comments; Semicolons; Parentheses; Curly braces; An assignment operator does not return a value; Spaces are optional in conditional and assignment statements; Hello World; Summary.
Chapter 2: Learning about Variables, Constants, Strings, and Operators Constants and variables; Defining constants and variables; Type safety; Type inference; Explicit types; Numeric types; Integers; Floating-point; The Boolean type; The string type; Optional variables; Enumerations; Operators; The assignment operator; Comparison operators; Arithmetic operators; The remainder operator; Increment and decrement operators; Compound assignment operators; The ternary conditional operator; The logical NOT operator; The logical AND operator; The logical OR operator; Summary.
Chapter 3: Using Collections and Cocoa Data Types Swift collection types; Mutability; Arrays; Creating and initializing arrays; Accessing the array elements; Counting the elements of an array; Is the array empty?; Appending to an array; Inserting a value into an array; Replacing elements in an array; Removing elements from an array; Adding two arrays; Reversing an array; Retrieving a subarray from an array; Making bulk changes to an array; Algorithms for arrays; sortInPlace; sort; filter; map; forEach; Iterating over an array; Dictionaries; Creating and initializing dictionaries.
Accessing dictionary valuesCounting key or values in a dictionary; Is the dictionary empty?; Updating the value of a key; Adding a key-value pair; Removing a key-value pair; Set; Initializing a set; Inserting items into a set; The number of items in a set; Checking whether a set contains an item; Iterating over a set; Removing items in a set; Set operations; Tuples; Using Cocoa data types; NSNumber; NSString; NSArray; NSDictionary; Foundation data types; Summary; Chapter 4: Control Flow and Functions ; What we have learned so far; Curly brackets; Parentheses; Control flow.
Conditional statementsThe if statement; Conditional code execution with the if-else statement; The for loops; Using the for loop variant; Using the for-in loop variant; The while loop; Using the while loop; Using the repeat-while loop; The switch statement; Using case and where statements with conditional statements; Filtering with the where statement; Filtering with the for-case statement; Using the if-case statement; Control transfer statements; The continue statement; The break statement; The fallthrough statement; The guard statement; Functions; Using a single parameter function.
Summary: Dive into the latest release of the Swift programming language with this advanced Apple development book for creating exceptional iOS and osX applications About This Book Harness the latest and most advanced features of Swift 2 to develop quality iOS and OSX applications Comprehensive coverage of all the advanced features of Swift and guidance on advanced design techniques Dive deep into protocol extensions, learn new error handling model, and use featured Swift design patterns to write more efficient code Who This Book Is For This book is for developers that want to dive into the newest version of Swift. If you want in-depth knowledge of some of the most sophisticated elements of Swift development including protocol extensions, error-handling, design patterns, and concurrency, Mastering Swift 2 gives you guidance on how to use and apply them in your own projects. What You Will Learn Dive into the core components of Swift 2 including operators, collections, control flow, and functions Create and use classes, structures, and enums including object-oriented topics such as inheritance, protocols, and extensions Develop a practical understanding of subscripts, optionals, and closures Learn how to use the new protocol extension and error handling features of Swift 2 Add concurrency to your applications using Grand Central Dispatch Master Objective-C interoperability with Mix and Match Access network resources using Swift Implement various standard design patterns in the Swift language In Detail At their Worldwide Developer's conference (WWDC) in 2015, Apple announced Swift 2, a major update to the innovative programming language they first unveiled to the world the year before. Swift 2 features exciting enhancements to the original iteration of Swift, acting, as Apple put it themselves as?a successor to the C and Objective-C languages.?? This book demonstrates how to get the most from these new features, and gives you the skills and knowledge you need to develop dynamic iOS and OS X applications. Learn how to harness the newest features of Swift 2 todevelop advanced applications on a wide range of platforms with this cutting-edge development guide. Exploring and demonstrating how to tackle advanced topics such as Objective-C interoperability, ARC, closures, and concurrency, you'll develop your Swift expertise and become even more fluent in this vital and innovative language. With examples that demonstrate how to put the concepts into practice, an ...
Item type:
Tags from this library: No tags from this library for this title. Log in to add tags.
Star ratings
    Average rating: 0.0 (0 votes)
Holdings
Item type Home library Collection Call number Materials specified Status Date due Barcode
Electronic-Books Electronic-Books OPJGU Sonepat- Campus E-Books EBSCO Available

Online resource; title from cover page (Safari, viewed November 23, 2015).

Includes index.

Cover ; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Taking the First Steps with Swift ; What is Swift?; Swift features; Playgrounds; Getting started with Playgrounds; iOS and OS X Playgrounds; Showing images in a Playground; Creating and displaying graphs in Playgrounds; What Playgrounds are not; Swift language syntax; Comments; Semicolons; Parentheses; Curly braces; An assignment operator does not return a value; Spaces are optional in conditional and assignment statements; Hello World; Summary.

Chapter 2: Learning about Variables, Constants, Strings, and Operators Constants and variables; Defining constants and variables; Type safety; Type inference; Explicit types; Numeric types; Integers; Floating-point; The Boolean type; The string type; Optional variables; Enumerations; Operators; The assignment operator; Comparison operators; Arithmetic operators; The remainder operator; Increment and decrement operators; Compound assignment operators; The ternary conditional operator; The logical NOT operator; The logical AND operator; The logical OR operator; Summary.

Chapter 3: Using Collections and Cocoa Data Types Swift collection types; Mutability; Arrays; Creating and initializing arrays; Accessing the array elements; Counting the elements of an array; Is the array empty?; Appending to an array; Inserting a value into an array; Replacing elements in an array; Removing elements from an array; Adding two arrays; Reversing an array; Retrieving a subarray from an array; Making bulk changes to an array; Algorithms for arrays; sortInPlace; sort; filter; map; forEach; Iterating over an array; Dictionaries; Creating and initializing dictionaries.

Accessing dictionary valuesCounting key or values in a dictionary; Is the dictionary empty?; Updating the value of a key; Adding a key-value pair; Removing a key-value pair; Set; Initializing a set; Inserting items into a set; The number of items in a set; Checking whether a set contains an item; Iterating over a set; Removing items in a set; Set operations; Tuples; Using Cocoa data types; NSNumber; NSString; NSArray; NSDictionary; Foundation data types; Summary; Chapter 4: Control Flow and Functions ; What we have learned so far; Curly brackets; Parentheses; Control flow.

Conditional statementsThe if statement; Conditional code execution with the if-else statement; The for loops; Using the for loop variant; Using the for-in loop variant; The while loop; Using the while loop; Using the repeat-while loop; The switch statement; Using case and where statements with conditional statements; Filtering with the where statement; Filtering with the for-case statement; Using the if-case statement; Control transfer statements; The continue statement; The break statement; The fallthrough statement; The guard statement; Functions; Using a single parameter function.

Dive into the latest release of the Swift programming language with this advanced Apple development book for creating exceptional iOS and osX applications About This Book Harness the latest and most advanced features of Swift 2 to develop quality iOS and OSX applications Comprehensive coverage of all the advanced features of Swift and guidance on advanced design techniques Dive deep into protocol extensions, learn new error handling model, and use featured Swift design patterns to write more efficient code Who This Book Is For This book is for developers that want to dive into the newest version of Swift. If you want in-depth knowledge of some of the most sophisticated elements of Swift development including protocol extensions, error-handling, design patterns, and concurrency, Mastering Swift 2 gives you guidance on how to use and apply them in your own projects. What You Will Learn Dive into the core components of Swift 2 including operators, collections, control flow, and functions Create and use classes, structures, and enums including object-oriented topics such as inheritance, protocols, and extensions Develop a practical understanding of subscripts, optionals, and closures Learn how to use the new protocol extension and error handling features of Swift 2 Add concurrency to your applications using Grand Central Dispatch Master Objective-C interoperability with Mix and Match Access network resources using Swift Implement various standard design patterns in the Swift language In Detail At their Worldwide Developer's conference (WWDC) in 2015, Apple announced Swift 2, a major update to the innovative programming language they first unveiled to the world the year before. Swift 2 features exciting enhancements to the original iteration of Swift, acting, as Apple put it themselves as?a successor to the C and Objective-C languages.?? This book demonstrates how to get the most from these new features, and gives you the skills and knowledge you need to develop dynamic iOS and OS X applications. Learn how to harness the newest features of Swift 2 todevelop advanced applications on a wide range of platforms with this cutting-edge development guide. Exploring and demonstrating how to tackle advanced topics such as Objective-C interoperability, ARC, closures, and concurrency, you'll develop your Swift expertise and become even more fluent in this vital and innovative language. With examples that demonstrate how to put the concepts into practice, an ...

eBooks on EBSCOhost EBSCO eBook Subscription Academic Collection - Worldwide

There are no comments on this title.

to post a comment.

O.P. Jindal Global University, Sonepat-Narela Road, Sonepat, Haryana (India) - 131001

Send your feedback to glus@jgu.edu.in

Hosted, Implemented & Customized by: BestBookBuddies   |   Maintained by: Global Library