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! While you're at it, check out some resources Treehouse students have shared here.

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

Crystal Ball Application Implemented in TabbarController

Hi i am trying to impliment the shaking feature of crystal ball application in a tabbarcontroller where a user can get random text on shaking the device, PROBLEM: The problem i am facing is that it only works on 1st tab, when i try to simulate the shaking gesture on any other tab it doesn't respond, not even in the NSLOG.

Is there any limitation to the shaking feature like it could be used once or twice within an application or is there other way to do it ?

Please help thanks.

1 Answer

are you only implementing the shake methods in your first view controller? if you implement them in all 3 of your view controllers I would think it would work.