Errata

iOS 8 Swift Programming Cookbook

Errata for iOS 8 Swift Programming Cookbook

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
last line

"fie seconds" should be "five seconds"

Note from the Author or Editor:
Hi there, this is fixed now.

Thanks.

Doug Thorpe  Sep 24, 2014  Nov 06, 2014
PDF
Page 15
Figure 1-3

Popover display has "Cancle" on top, should be "Cancel"

Note from the Author or Editor:
Hi there, thanks for this. I can confirm that this was an issue in the book which has already been fixed. I believe the next build of the PDF and the actual book will contain this fix.

Anonymous  Oct 19, 2014  Nov 06, 2014
PDF
Page 41
handler used for the action

Action as mentioned in text book (repeated below)
let action = UIAlertAction(title: "Next", style: UIAlertActionStyle.Default) {[weak self](paramAction : UIAlertAction!) -> Void in
let userName = self!.alertController!.textFields[0].text
println("Your username is \(userName)")
}

gives the error message [AnyObject]? does nothave a member named 'subscript',

I modified the closure block as below and it works

let action = UIAlertAction(title: "Next", style: UIAlertActionStyle.Default) {[weak self](paramAction : UIAlertAction!) -> Void in
let userName = self!.alertController!.textFields as Array!
let textField = userName[0] as UITextField
println("value is " + textField.text)
}

Thanks

Note from the Author or Editor:
Hi, thanks for submitting this. It's fixed now and will be in the final book.

Learner  Sep 21, 2014  Nov 06, 2014
PDF
Page 65
4th paragraph

"Sharin data is very easy in iOS." should add "g" so it becomes "Sharing data is very easy in iOS."

Note from the Author or Editor:
Hi there, thanks for this. I checked it out and it seems to now have been fixed through the many rounds of reviews that we did after the early release came out.

tnx

Anonymous  Nov 03, 2014  Nov 06, 2014