Errata for iOS 11 by Tutorials v1.1

There is no topic errata for version 1.1. So I create this topic.

Chapter 1, page 25

let mileage = regex.rangeOfFirstMatch(in: textInput, 
                                  range: nsRange)

rangeOfFirstMatch() signature is different. Above code has to be following.

let mileage = regex.rangeOfFirstMatch(in: textInput, []
                                  range: nsRange)

The usage in the book is correct. The options argument has a default value of [] and, thus, need not be specified.

Oh~ I misunderstood. :sweat_smile:

Thanks.

Chapter 2, page 53

…It’s worth remembering that encoding and decoding is a recursive process, so as long as your your model layer mirrors…

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