Errata for Build iOS Games with Sprite Kit
We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.
The latest version of the book is P1.0, released 8 months ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.
|Paper||Description||Found in||Fixed in|
#77541: While working on chapter 4, I noticed that after I completed step 4-6, if I tap on the screen multiple times to close the “star wars” style text crawl, the game crashes.
I tried this with the sample code, and noticed the same issue happened vs. what I was building as I went through the book (if it helps, I'm using Xcode 6.1 beta). Looking at the issue more closely using NSLog statements to see when the “endScene” vs. “willMoveFromView” methods were being called, I noticed that "endScene" was called first as expected, but that doesn't remove the Gesture Recognizer. "willMoveFromView" was called shortly afterwords, but the delay was noticeable (around a second on my iMac).
With the delay to remove the tap gesture recognizer as a possible cause of the crash, I tried rebuilding the program with the following revisions to "endScene" (and commented the respective lines out in “willMoveFromView” method), and the program no longer crashed due to repeated taps:
- (void) endScene
I hope this helps, and thanks for looking into this!--Will Lada Jr.
#77541: While working on chapter 4, I noticed that after I completed step 4-6, if I tap on the screen multiple times to close the “star wars” style te...more...