• Complain

Wei-Meng Lee - Beginning Swift Programming

Here you can read online Wei-Meng Lee - Beginning Swift Programming full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2014, publisher: Wiley, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Wei-Meng Lee Beginning Swift Programming
  • Book:
    Beginning Swift Programming
  • Author:
  • Publisher:
    Wiley
  • Genre:
  • Year:
    2014
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

Beginning Swift Programming: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Beginning Swift Programming" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Style - Font Definitions -face font-family: Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0 Style Definitions p. MsoNormal, li. MsoNormal, div. MsoNormal mso-style-parent:; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:Times New Roman; mso-fareast-font-family:Times New Roman page ...

Wei-Meng Lee: author's other books


Who wrote Beginning Swift Programming? Find out the surname, the name of the author of the book and a list of all author's works by series.

Beginning Swift Programming — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Beginning Swift Programming" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
INTRODUCTION The IT world is an extremely fast-changing one Small changes - photo 1
INTRODUCTION

The IT world is an extremely fast-changing one. Small changes occur nearly daily, and every now and then something big happens that changes the entire industry, if not the world. For example, the iPhone, introduced in 2007, transformed the mobile industry overnight, spearheading the new era of the smartphones. The launch of the iPad three years later (2010) changed the way we use our computers, causing many to predict that we are all entering the end of the PC era.

For a long time after its inception in the 1980s, Objective-C was used by NeXT for its NeXTStEP operating system. Mac OS X and iOS both derived from NeXTSTEP, and Objective-C was thus the natural choice of language to use for Mac OS and iOS development. Developers starting on iOS development often complain that Objective-C does not look like a modern programming language (such as Java or C#), and that it is difficult to write and requires spending significant amounts of time trying to learn. For seven years, Apple has improved on the language and the iOS framework, making life easier for developers by introducing helpful features, such as Automatic Reference Counting (ARC), which takes the drudgery out of memory management, and Storyboard, which simplifies the flow of your application user interface. However, this did not stop all the complaints. Furthermore, Apple needed a new language that could take iOS and Mac OS development to the next level.

In 2014, at the Apple World Wide Developers Conference (WWDC), Apple took many developers by surprise by introducing a new programming language: Swift. After seven years, Apple finally released a new language that can replace Objective-C! As you will see throughout this book, Swift is a modern programming language with an easy-to-read syntax, and strict enforcement of type safety.

This book was written with busy developers in mind. It aims to cut through all the technical jargon and dive straight into the language. Of course, the best way to learn any new language is to see code examples, and this book is loaded with them. To get the most from the material, therefore, I strongly recommend that you work through the examples in each chapter as you read them.

WHO THIS BOOK IS FOR

This book is targeted at both beginning iOS developers and experienced Objective-C developers. It assumes a foundation in programming, and an understanding of object-oriented programming (OOP) concepts is required to get the most out of this book.

All the code samples in the chapters were written and tested using the final version of Xcode 6. Because the Swift language is still evolving, expect to see minor tweaks by the time this book is on the market.

HOW THIS BOOK IS STRUCTURED

This book covers the key topics of Swift programming using Xcode 6. It is divided into the following 12 chapters:

Chapter 1, Introduction to Swift, covers the basic syntax of Swift and how to set up the development environment so that you can test your Swift code.

Chapter 2, Data Types, covers the basic data types supported in Swift and how to perform the common operations involving them. It also covers the new tuple and optional data types introduced in Swift.

Chapter 3, Strings and Characters, discusses how strings and characters are managed in Swift. In particular, special emphasis is placed on how the string type in Swift is backwardly compatible with the NSString in Objective-C. Also covered are things you need to be aware of when dealing with Unicode characters.

Chapter 4, Basic Operators, covers all the commonly used operators supported by Swift. In addition, it discusses the new range operators introduced in Swift.

Chapter 5, Functions, explains how functions are defined in Swift and the use of internal and external parameter names when calling them.

Chapter 6, Collections, covers the collection types supported in Swiftarrays and dictionaries.

Chapter 7, Control Flow and Looping, covers how to make decisions in Swift and how to use the looping statements to execute your Swift code repetitively.

Chapter 8, Structures and Classes, covers the basics of these programming constructs. It also demonstrates how to define properties and methods in your classes and structures.

Chapter 9, Inheritance, covers how to create subclasses in Swift and how access control rules affect the accessibility of a member. It also explains how to extend a class using the extension feature.

Chapter 10, Closures, covers everything you need to know about these blocks of functionality and demonstrates how they enable you to write versatile code in Swift.

Chapter 11, Protocols and Delegates, discusses a very important part of Swifts design pattern. The protocol and delegate model is the basis on which most of the APIs in iOS and Mac OS programming are based.

Chapter 12, Generics, covers how Swift embraces this familiar programming concept, which enables the developer to write highly adaptable code that promotes sharing and reusing.

The appendix offers the answers to the exercises found at the end of each chapter.

WHAT YOU NEED TO USE THIS BOOK

In order to follow the examples provided in this book, you need a Mac to install Xcode 6. Xcode 6 is available for download, free, from the Mac App Store. No iOS device is needed to test the code in this book. For testing, you can create either a Playground project or an iOS project, which you can then test on the included iPhone Simulator.

CONVENTIONS

To help you get the most from the text and keep track of whats happening, weve used a number of conventions throughout the book.


NOTE Notes indicates notes, tips, hints, tricks, and asides to the current discussion.



WARNING Warnings hold important, not-to-be-forgotten information that is directly relevant to the surrounding text.


As for styles in the text:

  • We highlight new terms and important words when we introduce them.
  • We show keyboard strokes like this: Command+A.
  • We show file names, URLs, and code within the text like so: persistence.properties.

We present code in two different ways:

We use a monofont type with no highlighting for most code examples.We use bold to emphasize code that is particularly important in the present context or to show changes from a previous code snippet.
SOURCE CODE

As you work through the examples in this book, you should type all the code into Xcode and observe the results. Remember, the best way to learn a language is to experience it yourself and make mistakes. For Chapter 11, you can find the source code for the LBS project at www.wrox/com/go/beginningswift. When at the site, simply locate the books title (use the Search box or one of the title lists) and click the Download Code link on the books detail page to obtain all the source code for the book.

After you download the code, just decompress it with your favorite compression tool. Alternatively, go to the main Wrox code download page at www.wrox.com/dynamic/books/download.aspx to see the code available for this book and all other Wrox books.


NOTE Because many books have similar titles, you may find it easiest to search by ISBN; this books ISBN is 978-1-119-00931-3.


ERRATA

We make every effort to ensure that there are no errors in the text or in the code. However, no one is perfect, and mistakes do occur. If you find an error in one of our books, such as a spelling mistake or a faulty piece of code, we would be very grateful for your feedback. By sending in errata, you may save another reader hours of frustration and at the same time help us provide even higher-quality information.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Beginning Swift Programming»

Look at similar books to Beginning Swift Programming. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Beginning Swift Programming»

Discussion, reviews of the book Beginning Swift Programming and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.