Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Simple iPhone App (iOS7) Animating and Intercepting Events Intercepting Motion Events

Issues with iOS 6.1

Although everything worked fine for iOS 7.1, I was not able to get the motionBegan and motionEnded events to fire properly in iOS 6.1 (simulator or physical device) until I implemented the following:

  • (BOOL) canBecomeFirstResponder { return YES; } After adding this, everything worked as expected. I imagine others may run into this issue as well, and unless I missed reference to it somewhere, I don't believe it was referenced in the material.

(Apologies, this was meant as feedback to the module "Build a Simple iPhone App: Intercepting Motion Events"; you can delete this post. Thank you!)