I’m really enjoying this book although have got myself a little stuck with this section (probably something silly!). I can’t get the color to change with the shake gesture. I’ve worked out that the motionBegin event isn’t being triggered within HypnosisView.
This led me to believe that it’s not actually becoming the firstResponder, which I have confirmed with the following output to console in viewWillAppear in HypnosisViewController:
[[self view] becomeFirstResponder]; NSLog(@"Is the view the first responder? %d", [[self view] isFirstResponder]); Produces: 2010-10-20 18:53:27.371 HypnoTime[2156:307] is the view the first responder? 0
I’ve checked that HypnosisView implements the method - (BOOL)canBecomeFirstResponder.
Any ideas on what might be wrong, or what I should be looking for to diagnoise this problem?