Programming iOS 12

Errata for Programming iOS 12

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
Page ?

I don't know the page number, as I'm reading the digital version. In Chapter 7, "Scroll Views", there's a section titled "No Internal Autolayout". The final line of the first paragraph is: "Horizontally, it has structs externally." It should say "struts" (as in "springs and struts"), not "structs".

Note from the Author or Editor:
Excellent, thanks. Fixed in next reprint.

Bill Atkins  Feb 11, 2019  Mar 22, 2019
Page Chapter 23
Chapter 23, "Basic Networking", section: Downloading Table View Data

There's an implementation of tableView(prefetchRowsAt:) here that loops through each indexPath and decides if it needs to fetch the image.

If it finds that an item already has an image, or a URL task, then the guard's at the top of the method return from the method completely.

The guards should continue instead of returning, because some of the index paths later in the array might need downloading, even if the current index path is okay.

Note from the Author or Editor:
I agree, I think that’s a very sensible change. Thank you!

Bill Atkins  Feb 23, 2019  Mar 22, 2019
Page 516
Section "Search Bar in Navigator"

Fails to mention in IOS12 the table view property "definesPresentationContext" must be true for search box to appear in Navigation controller. The author's downloaded example "c21p732searchableTable4" does set the property true on line 100. Curiously, the comment for the line says "Does not matter", which is incorrect for IOS 12. Setting it to false causes the Search box to disappear when it receives first character of input. I am using XCode 10.3 and Simulator 10.3 for Iphone XR.

Note from the Author or Editor:
Possibly what this erratum says is true, but I've cut all mention of definesPresentationContext in the next edition because the runtime now sets it for you anyway.

G Adams  Aug 09, 2019