Errata

iOS 10 Programming Fundamentals with Swift

Errata for iOS 10 Programming Fundamentals with Swift

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
PDF
Page xi
"Clarity" paragraph

The phrase "minimal syntactic sugar" has always seemed wrong to me. Swift has more syntactic sugar than any language I know. You yourself use the phrase ten times later in the book to describe some syntax. Perhaps "minimal syntactic noise" is closer to what you mean? Or "no redundant punctuation" might be clearer.

Note from the Author or Editor:
Let's try something like "Its syntax is clear, consistent, and explicit, with few hidden shortcuts and minimal syntactic trickery." The sort of thing I had in mind when I wrote this was stuff like Ruby or C where, for example, other things besides `false` can mean `false` in a condition.

Peter Olsen  Aug 18, 2016  Sep 23, 2016
PDF
Page xv
1st paragraph

Should be Xcode 8 in "The Swift language included with Xcode 3". There are transposed words in "has changed very significantly its from predecessor". And there's a missing verb in "I naturally do still Objective-C method names".

Note from the Author or Editor:
All perfectly true. Thanks.

Peter Olsen  Aug 18, 2016  Sep 23, 2016
ePub
Page title
Title

Title showing in iBooks is "iOS 9 Programming Fundamentals with Swift" instead of "iOS 10..."

Note from the Author or Editor:
I've reported this to the publisher, thanks.

Eduard Rozenberg  Sep 02, 2016  Sep 23, 2016
PDF, ePub, Mobi
Metadata

The Document Title metadata has the name of the previous book: "iOS 9 Programming Fundamentals with Swift"

Note from the Author or Editor:
Very good catch. I've reported this to the publisher. I think I know where this is coming from but I'm not sure.

Anonymous  Sep 14, 2016  Sep 23, 2016

In Section 2 under "Anonymous Functions" your first use of anonymous functions in ImageOfSize() for drawing() is missing the syntax "() -> () in". You do shortly after explain that you don't need it but it probably should be in the example.

Note from the Author or Editor:
I noticed this too; fixed in the published book

John Burke  Sep 28, 2016 
PDF
Page 38
2nd to last paragraph

Missing "the" before "name" (or other phrasing) in "Notice the ampersand before name of s as the first argument in our function call!"

Note from the Author or Editor:
Well spotted; sentence completely rewritten.

Peter Olsen  Nov 26, 2016 
PDF
Page 67
3rd paragraph code block

Variable declared as "button":

@IBOutlet var button : UIButton!

but later referenced as "b"

self.b.addTarget(

Also the other examples use the "b" naming, not "button"

Note from the Author or Editor:
Very well spotted. I think I've eliminated this now, by calling this variable `button` throughout.

Eduard Rozenberg  Sep 26, 2016 
PDF
Page 70
4th paragraph

Paragraph starts "An property is visible to code...." Should be "A property is visible to code.."

Note from the Author or Editor:
Right you are. I think what happened is that I had written "an instance property" and then I realized there was no need to be so precise.

James Parker  Aug 22, 2016  Sep 23, 2016
PDF
Page 89
last paragraph

For sqrt and other math functions, it is no longer the case that "there is no implicit coercion, even for literals." On page 90, the first sentence is also outdated. The sqrt function is now defined natively (and generically), so it works as expected.

Note from the Author or Editor:
Wow, I totally missed the memo on this one.

Peter Olsen  Aug 27, 2016  Sep 23, 2016
Printed
Page 89
Last paragraph

The copy I have shows in the last sentence on the page,

So if n is an Int and you want to get a random Int between between 0 and n-1, you can't say arc4random_uniform(n); you have to coerce the argument and the result, saying Int(arc4random_uniform(UInt32(n))).


There are duplicate between between. Simple type-O.

I thoroughly am enjoying your writing style and book. Very helpful.

Thanks
Tom

Note from the Author or Editor:
Great catch, thanks.

Tom Schaffernoth  Sep 14, 2017 
PDF
Page 112
2nd code block

The < operator is no longer defined over Optionals. The code sample "let i : Int? = 2; if i < 3 { //" gives the error "Value of optional type Int? not unwrapped".

Note from the Author or Editor:
I know. I've already removed the example. I now report the error message and explain how to work around it.

Peter Olsen  Aug 30, 2016  Sep 23, 2016
PDF
Page 119
6th paragraph

Paragraph starting with "An initializer is kind of function...." should probably read "An initializer is a kind of function..."

Note from the Author or Editor:
Good catch, thanks!

James Parker  Aug 25, 2016  Sep 23, 2016
PDF
Page 192
1st code example

Inconsistent case on case names (None and Some instead of none and some).

Note from the Author or Editor:
Well spotted; this was left over from when case names started with a capital letter.

Peter Olsen  Sep 24, 2016 
Printed
Page 351
Last bullet on the page

In the copy that I have, on page 351, the last bullet is missing the word "name" in the first sentence of the last bulleted item.

Book text:

In the nib editor, there needs to be an outlet with the same as the owner instance property, leading from the owner to the nib object.

Thinking it should be:

In the nib editor, there needs to be an outlet with the same name as the owner instance property, leading from the owner to the nib object.

Your book is really good Matt! Many thanks.
Tom

Note from the Author or Editor:
Absolutely correct. Thanks for the sharp eyes!

Tom Schaffernoth  Sep 21, 2017 
Printed
Page 359
2nd full paragraph

Hey Matt,

Thinking that sentence nouns are backwards on page 359 in the second full paragraph.

The context of the section is building an action connection.

In the printed copy that I have, the third sentence in the second full paragraph states:

"There are many ways to form this outlet connection, all of them completely parallel to the formation of an action connection."

Since the previous section just got done with various ways to create outlets, and now the current section is dealing with creating action connections. That is why the "this" seemed odd to me. The "this" implies the current section of action connections. I was thinking it should say:

"There are many ways to form this action connection, all of them completely parallel to the formation of an outlet."

Thanks for all your excellent work.
Tom

Note from the Author or Editor:
Absolutely true: swap "action" and "outlet" in that sentence.

Tom Schaffernoth  Sep 22, 2017