although this is a answered question here. the solution works fine in rootviewcontroller of the appdelegate. if same methods are written in a viewcontroller which is presented as a modalviewcontroller from the app delegate it doesn’t work :(. can somebody help me out.
thanks in advance!!
I got the answer after breaking head for a day!!! (maybe a piece of cake for others).
here goes the solution:
In the root view controller or view controller from where we present modal view controller we have to detect shake:
present the modal view normally… shake will be detected in modalview also…
Its tested and working!!
Thanks all 🙂