Errata
The errata list is a list of errors and their corrections that were found after the product was released.
The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.
Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted by | Date submitted |
---|---|---|---|---|
Printed | Page xviii 1st paragraph |
The section Using Code Examples says that the example code is at https://github.com/oreillymedia/iOS_7_programming_cookbook |
Anonymous | Oct 29, 2013 |
Page XVIII Preface 1st paragraph at the top of the page |
The referenced source code cannot be downloaded due to the following two errors: |
Martin Turner | Oct 30, 2013 | |
Page Page XVIII Preface 1st paragraph at the top of the page |
he referenced source code cannot be downloaded due to the following two errors: |
Martin Turner | Nov 01, 2013 | |
Page Page No 177 collissionBehavior method of the delegate implementation |
CGAffineTransformMakeScale(2.0f,2.0f) is expected to double the size of the view before it gets removed. However this is not happening when the program gets executed on the device. |
Partha | Dec 31, 2013 | |
, Other Digital Version | Chapter 2 |
Pareshkumar N. Suthar | May 24, 2014 | |
Printed | Page page xvii Under Conventions Used In This Book |
I looked thoroughly but I don't see "Constant width bold" which is supposed to show commands or other text that should be typed literally by the user. What's going on here? Furthermore, has any of the unconfirmed errata been checked for it's accuracy? I find it very disturbing that a book for this price hasn't been carefully vetted. |
Anonymous | Jul 30, 2014 |
PDF, ePub | Page 1 Mexico |
Ch01, page 01 |
Angel Jonathan GM | Sep 23, 2013 |
Page 1 3rd paragraph |
the code listed: |
Anonymous | Sep 27, 2013 | |
Page 1 3rd paragraph |
The initial example in paragraph 2 uses -20 (Minus Twenty) for the NSInteger myNumber, but then in paragraph 3, the number used it 20 (Positive Twenty). |
Anonymous | Feb 15, 2014 | |
Other Digital Version | 2 recipe 2.4 |
In the example code chapter 2, recipe 2.4 the code describes a method initWithItem:point:attachedToAnchor, but this instance method does not exist. |
Anonymous | Feb 03, 2015 |
PDF, ePub | Page 3 Mexico |
Ch01, page 03 |
Angel Jonathan GM | Sep 23, 2013 |
Printed | Page 4 1st paragraph |
Under the section Mutable Versus Immutable there is a typo in the first sentence. "if" should be "it". |
Randall Lutcavich | Oct 14, 2014 |
Printed | Page 5 3rd Paragraph From the Bottom |
An extra word ("of") is included in the first sentence of the third paragraph from the bottom. |
Randall Lutcavich | Oct 14, 2014 |
Printed | Page 19 middle of page |
__unused NSString *secondObject = array[0]; |
Anonymous | Oct 25, 2013 |
PDF, ePub | Page 21 Mexico |
Ch01, page 21 |
Angel Jonathan GM | Sep 23, 2013 |
Page 25 3rd and 4th paragraph |
The descriptions of "title" and "message" contain errors. |
Anonymous | Feb 16, 2014 | |
Page 30 Figure 1-4 |
The dialog shows a number with dashes, but the keyboard does not allow the entry of dashes. So the text in the field could not have been typed on this keyboard, unless some auto-formatting was in place, which is not described in this example. |
Anonymous | Feb 16, 2014 | |
PDF, ePub | Page 41 Ch01, page 41, code snippet |
Since in recipe 1.3 variable mainSwitch refers to previous switch declared in recipe 1.2, the correct name for this switch variable should be "self.mySwitch" instead of "self.mainSwitch". |
Angel Jonathan GM | Sep 28, 2013 |
PDF, Mobi | Page 56 56 |
Ch01, Ex07 |
Lalo | Nov 04, 2013 |
PDF, ePub | Page 62 Ch01, Recipe 1.7, Page 62, Code snippet |
Since the variable "self.slider" from recipe 1.7 makes reference to the variable declared in previous recipe 1.6, then the variable "self.slider" should be "self.mySlider" instead. |
Angel Jonathan GM | Sep 28, 2013 |
PDF, Mobi | Page 63 Example code |
The method "roundedValuesInRect" it's missing. |
Lalo | Oct 06, 2013 |
PDF, ePub | Page 64 Ch01, Recipe 1.7, Page 64, 2nd Paragraph |
At the end of the 2nd paragraph it says "Obviously, you need to provide a 46x46 image for retina displays". |
Angel Jonathan GM | Sep 28, 2013 |
Page 64 United States |
In the book, it says "Now that you have created an application using the Empty Application template in Xcode, follow these steps to create a new view controller for your app:" |
Anonymous | Feb 23, 2014 | |
PDF, ePub | Page 71 Ch01, Recipe 1.8, Page 71, Code snippet |
xCode 5.0 does not display the selected image for segmented control. |
Angel Jonathan GM | Sep 28, 2013 |
Page 71 code snippet in middle of page |
can't change size.height of UISegmentedControl in iOS 7. haven't been able to find this in Apple's documentation, but neither can you change it, nor can you change it in Storyboard. |
ddelwood | Oct 05, 2013 | |
PDF, ePub | Page 92 Ch01, Recipe 1.12, Page 92, image 1-33 |
The image provided does not match with code snippet from page 91 (we haven't set nav bar title neither created a label). |
Angel Jonathan GM | Oct 02, 2013 |
Printed, PDF | Page 98 2nd paragraph |
"It turns out that every view controller has a property called tabItem." |
WillM | Jan 16, 2014 |
Printed, PDF | Page 121 method handleKeyboardDidShow: |
The recipe calls for using contentInset to compensate for the keyboard. The code written as-is does not work for iOS7. Based on the research I did, Apple switched from using WebKit to TextKit for UITextView and a few bugs came along in the process. Using contentInset does not work; re-sizing the frame appears to work. |
WillM | Jan 19, 2014 |
Printed, PDF | Page 121 method handleKeyboardDidShow: |
Note: I posted that re-sizing the frame appears to work, however, it does not work in all cases I tried later. Looks like there are a number of issues with iOS7 and UITextView. |
WillM | Jan 19, 2014 |
Printed, PDF | Page 144 2nd paragraph |
Says "In iOS 7, we can start using attributed strings." |
WillM | Jan 22, 2014 |
Printed, PDF | Page 155 2nd paragraph (under Delegate Class) |
Says "The app delegate simply creates an instance of the RootViewController class and presents it to the user." |
WillM | Jan 28, 2014 |
Printed, PDF | Page 157 3rd paragraph |
Says "The first method gets called when the page view controller already has a view controller on the screen and needs to know which previous view controller to render. This happens when the user decides to flip to the next page." |
WillM | Jan 28, 2014 |
Printed, PDF | Page 161 Pages 161-162 (code starting with isInPopover |
Method isInPopover does not appear to be necessary. PopoverContentViewController, where this method resides, is only used by iPad. Therefore, there appears to be no reason to even check if it's a popover. In addition, the other two methods (gotoAppleWebsite: and gotoAppleStoreWebsite:) are target/actions for iPad only, thus, the code never gets executed for iPhone. The comments in each of these methods that says "Handle case for iPhone" is misleading. To double check, I placed debug breakpoints in each of these methods. They were only called when running with iPad. |
WillM | Jan 28, 2014 |
Printed, PDF | Page 179 3rd paragraph |
says "One of the interesting properties of the UIGravityBehavior class is collisionMode." |
WillM | Feb 02, 2014 |
PDF, ePub | Page 181 Ch01, recipe 28 , 2nd paragraph |
It says "There is one .xib for iPad and another one of iPhone..." |
Angel Jonathan GM | Oct 16, 2013 |
PDF, ePub | Page 184 Ch01, recipe 28, 1st paragraph |
It says "This happens when the user decides to flip to the next page...". |
Angel Jonathan GM | Oct 16, 2013 |
Printed, PDF | Page 186 squareViewAnchorView |
Along with Ilya's post (page 187, on Oct 23, 2013), the view squareViewAnchorView does not appear to be necessary for this code to work. All references can be removed from the code and it will still work the same. |
WillM | Feb 06, 2014 |
Page 187 - (void) createAnimatorAndBehaviors{ ... self.attachmentBehavior = ...} |
The method signature has changed, and the former call causes an error - |
Ilya | Oct 23, 2013 | |
PDF, ePub | Page 189 Ch01, Code snippet |
In methods gotoAppleWebsite and gotoAppleStoreWebsite there's else statement for hanlding "case for iphone". Are those "else statement" really needed? After all, PopoverContentViewController will be created only when device is an iPad (see construction in viewDidLoad method on page 190). I think an else statement handling iphone case in this part of the code is unnecessary. |
Angel Jonathan GM | Oct 18, 2013 |
Printed, PDF | Page 217 Pages 217-219 |
This solution appears to be pre-Xcode 5. With Xcode 5, when checking Use Autolayout, no constraints are created. The developer can create the constraints at any time by control-dragging from the view object, or using the Resolve Auto Layout Issues and/or Pin buttons. |
WillM | Jan 16, 2014 |
Page 230 viewDidLoad |
delegate is not set for table view so the disclosure button does nothing when clicked. Solution: |
Christos K | Apr 12, 2014 | |
Page 275 1st block of code in that page |
In that block of code you have a line with the following code: |
Andre Fonseca | Feb 02, 2014 | |
Page 290 Last paragraph |
In IOS 7 we get error when will change orientation of device screen: |
Ilya | Oct 31, 2013 | |
PDF, ePub | Page 354 recipe 2, 1st paragraph |
It says: "Now place another view controller from the Object Library onto your storyboard and place a button and a text field on the first view controller as well." |
Angel Jonathan GM | Oct 19, 2013 |
PDF, ePub | Page 358 Ch06, recipe 2, code snippet |
at prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender method, code line: |
Angel Jonathan GM | Oct 19, 2013 |
Printed | Page 441 middle of page in applicationDidFInishLaunching:withOptions: |
I don't see how this query can work. You are including kSecAttrSynchronizable in the query used for finding the items to delete. Since you are deleting them in order to make them synchronizable, the query will not find them because they are not yet synchronizable (they don't yet have the kSecAttrSynchronizable key); |
Alan McKean | Mar 03, 2014 |
PDF, ePub | Page 527 Ch10, recipe 2, code snippet |
Does it make sense to ask for swipe gesture direction Down, Right, and Up? Those conditions will not be "executed" since we are limiting our swipe gesture left only in declaration of viewDidLoad method. |
Angel Jonathan GM | Oct 19, 2013 |
Printed | Page 838 1st paragraph |
I couldn't for the life of me get the font to show for the given color (magenta) as written. I am currently at the up-to-date version of xcode. |
Anonymous | Nov 20, 2013 |
Printed, PDF, ePub | Page 904 if ([self.view drawViewHierarchyInRect:self.view.bounds]){ |
Reports error when code is pasted into @implementation of View controller: |
Gay Stout | Dec 27, 2013 |
ePub | Page 1075 Ch14, recipe 6 |
In code snippet for nscoding protocol method "(instancetype)initWithCoder:(NSCoder *)aDecoder?, it is not clear the form in which the variables _firstName and _lastName are being called. Why the underscore? |
Angel Jonathan GM | Nov 03, 2013 |
ePub | Page 1182 Ch14, introduction |
In "Documents/" folder explanation, you state the following: |
Angel Jonathan GM | Nov 03, 2013 |