# Typos in book 6.0

**URL:** <https://forums.kodeco.com/t/typos-in-book-6-0/36985>\
**Category:** iOS Apprentice\
**Created:** [November 26, 2017, 7:01pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985 "2017-11-26T19:01:38Z")\
**Posts on this page:** 16\
**Page:** 2

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [December 18, 2017, 12:27am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/21 "2017-12-18T00:27:11Z")

</div>

> [@7stud](#):
>
> The protocol declaration uses the class keyword(?). There’s no explanation in the text of what that does, and it looks like a typo.

You are right, there should have been an explanation of why the protocol declaration had `class` there. Will fix in the next update. But that’s not a typo. You can easily verify this by removing the class binding for the protocol and see what happens. And yes, you can use `AnyObject` instead of `class` too.

But simplifying by not having the delegate be strong is not the way to go unless you absolutely, definitely, with 100% certainty know that it will not lead to retain cycles.

---

<div class="post-metadata">

**Author:** ![hyperknot](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hyperknot/32/73029_2.png) [@hyperknot](https://forums.kodeco.com/u/hyperknot)\
**Post date:** [December 18, 2017, 12:50am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/22 "2017-12-18T00:50:25Z")

</div>

Hi Fahim,

I just finished this wonderful book, it was a great experience.

Two important issues I wanted to ask/note:

Page 841, But with iOS 11, there’s a new way to do things - your old pal Codable.  
 → This should actually be Swift 4, shouldn’t it? I can compile the project to iOS 10 (and with small modification even to iOS 9) and it’ll work. So it’s not dependent on iOS version, I believe.

Page 875, However, till iOS 11, and With iOS 11, Apple introduced → This is actually dependent on Xcode version, not on iOS, namely it got introduced with Xcode 9, didn’t it?

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [December 18, 2017, 1:06am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/23 "2017-12-18T01:06:25Z")

</div>

> [@hyperknot](#):
>
> Page 841, But with iOS 11, there’s a new way to do things - your old pal Codable.
> 
> -\> This should actually be Swift 4, shouldn’t it? I can compile the project to iOS 10 (and with small modification even to iOS 9) and it’ll work. So it’s not dependent on iOS version, I believe.
> 
> Page 875, However, till iOS 11, and With iOS 11, Apple introduced -\> This is actually dependent on Xcode version, not on iOS, namely it got introduced with Xcode 9, didn’t it?

You are right on both counts - I have added notes to fix those for the next release. Thanks for taking the time to point out these issues 🙂

---

<div class="post-metadata">

**Author:** ![fakefur](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@fakefur](https://forums.kodeco.com/u/fakefur)\
**Post date:** [January 6, 2018, 4:12pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/24 "2018-01-06T16:12:28Z")

</div>

hi guys

page 200 Method Signatures

“…like `tableView(_:numberOfRowsInSection:)` or `tableView(_:cellForRowAt:)`”

the : after the \_ are not in the actual code we are supposed to type in - am i stupid or is this confusing?

thanks

---

<div class="post-metadata">

**Author:** ![7stud](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/7stud/32/81494_2.png) [@7stud](https://forums.kodeco.com/u/7stud)\
**Post date:** [January 6, 2018, 6:15pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/25 "2018-01-06T18:15:10Z")

</div>

> `tableView(_:numberOfRowsInSection:)`
> 
> the : after the \_ are not in the actual code we are supposed to type in

You don’t type any of it in your program. Rather, that syntax is used when you need to describe a method in some text.

When you need to write about a method in a book or in a post on a forum, you need some way of uniquely identifying the method name. The `_:` signifies that the method takes an argument without a parameter label. For instance, here are two method definitions:

```
func go(_ distance: Int, direction d: String) {
    ....
}
func go(time t: Int, location id: String) {
    ....
}

```

If you need to write something describing one of those methods, you refer to the first method as `go(_:direction:)` and the second method as `go(time:location:)`. When you need to call those methods in your code, you do have to write some colons:

```
go(12, direction: "West")
go(time: 11, location: "Maple St.")

```

The colons in the full method name, e.g. `go(_:direction:)` come from the syntax used in Objective-C, which was the original iOS programming language.

---

<div class="post-metadata">

**Author:** ![fakefur](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@fakefur](https://forums.kodeco.com/u/fakefur)\
**Post date:** [January 7, 2018, 5:08pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/26 "2018-01-07T17:08:40Z")

</div>

huh thanks

it’s very odd seeing functions have different looking notations depending on where they are in the code - not seen that in any other language i’ve ever worked with before

---

<div class="post-metadata">

**Author:** ![7stud](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/7stud/32/81494_2.png) [@7stud](https://forums.kodeco.com/u/7stud)\
**Post date:** [January 7, 2018, 7:36pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/27 "2018-01-07T19:36:34Z")

</div>

> [@fakefur](#):
>
> seeing functions have different looking notations depending on where they are in the code

That is incorrect. Methods always use the same syntax in your code. However, Swift is unique among the languages that I’ve studied in that parameter variables are considered part of the method name.

---

<div class="post-metadata">

**Author:** ![fakefur](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@fakefur](https://forums.kodeco.com/u/fakefur)\
**Post date:** [January 7, 2018, 9:29pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/28 "2018-01-07T21:29:29Z")

</div>

that’s a better way of putting it thanks, and yes it is odd but i guess it’s sort of a function overloading mechanism so it kinda makes sense  
🙂

---

<div class="post-metadata">

**Author:** ![deleon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/deleon/32/74010_2.png) [@deleon](https://forums.kodeco.com/u/deleon)\
**Post date:** [February 24, 2018, 4:55pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/29 "2018-02-24T16:55:26Z")

</div>

p. 200

“Now that the table view knows it has one row to display, it calls the second method you added – tableView(\_:cellForRowA:t) – to obtain a cell for that row.”

Should be: tableView(\_:cellForRowAt:)

p. 334 spelling mistake

“andd” should be “and”

p. 336 spelling mistake

“possibble” should be “possible”

p. 353 spelling mistake

“informaiton” should be “information”

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [February 24, 2018, 11:41pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/30 "2018-02-24T23:41:18Z")

</div>

Thank you for these 🙂 I will fix in the next release of the book.

---

<div class="post-metadata">

**Author:** ![deleon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/deleon/32/74010_2.png) [@deleon](https://forums.kodeco.com/u/deleon)\
**Post date:** [April 2, 2018, 10:01pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/31 "2018-04-02T22:01:13Z")

</div>

Possible Chapter 25 Typos:

p. 566 “The description cell at the top…” this is not actually shown in the figure.

p.568 The (Message Label) from Ch 23 does not appear in the figure.

p. 569 It might be clearer to say that the Cancel button goes right on top of the “\<Back”. I was a bit confused on the “left slot” description.

p. 583 misspelled “knoiw” should be “know”

p. 604 The background color is red, however on p. 606, 607, and 609 it is gone. Either this is intentional so that the HUD is apparent or it was coded out. If the latter, I am not sure where this was done.

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [April 3, 2018, 12:37am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/32 "2018-04-03T00:37:08Z")

</div>

> [@deleon](#):
>
> p. 566 “The description cell at the top…” this is not actually shown in the figure.

The description cell is there but since a text view normally does not show a border (or hint text) you cannot see it as something other than white space in the cell. This is just how iOS works. I believe that we add some text to show the description label and that text is missing here. Is that what you meant?

> [@deleon](#):
>
> p. 604 The background color is red, however on p. 606, 607, and 609 it is gone. Either this is intentional so that the HUD is apparent or it was coded out. If the latter, I am not sure where this was done.

Page 604 says “Remove the backgroundColor line from the hud(inView:animated:) method.” - that’s where that happened 🙂

---

<div class="post-metadata">

**Author:** ![deleon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/deleon/32/74010_2.png) [@deleon](https://forums.kodeco.com/u/deleon)\
**Post date:** [April 7, 2018, 12:38am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/33 "2018-04-07T00:38:01Z")

</div>

p. 650 “NSFetchedResulsController” should be “NSFetchedResultsController”

---

<div class="post-metadata">

**Author:** ![deleon](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/deleon/32/74010_2.png) [@deleon](https://forums.kodeco.com/u/deleon)\
**Post date:** [April 21, 2018, 2:51pm UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/34 "2018-04-21T14:51:46Z")

</div>

p. 678 “Add a mp view: Learn how…” should be “map”

p. 686 “…would be add below the title” should be “added”

p. 805 After adding constraints to “Artist Name” needs (obvious) extra step: “Click Add 3 Constraints.”

p. 812 “…appear gray as if it were selected.aFor some reason,…” replace “.a” and “. “

p. 846 FYI showNetworkError() needs to be added to SearchViewController.swift (the last file we were on in the progression was SearchResult.swift)

p. 848 “Add the following properties to SearchResult:” should be SearchResult.swift (formatted like a file)

p. 855 “You hedge agains that…” misspelled should be “against”

p. 874 “… don’t worry abobut that yet…” misspelled should be “about”

p. 879 “…class for asynchronouys networking…” misspelled should be “asynchronous”

p. 889 “…parameter and then alls parse(data:)…” misspelled should be “calls”

---

<div class="post-metadata">

**Author:** ![nidupb](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/nidupb/32/91476_2.png) [@nidupb](https://forums.kodeco.com/u/nidupb)\
**Post date:** [April 22, 2018, 1:30am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/35 "2018-04-22T01:30:26Z")

</div>

Hi,  
p. 96 “Getting back to your cxode” → xcode

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [May 12, 2018, 11:01am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985/36 "2018-05-12T11:01:40Z")

</div>

This topic was automatically closed after 166 days. New replies are no longer allowed.

[Previous page](https://forums.kodeco.com/t/typos-in-book-6-0/36985.md?page=1)
