ios - Detecting shake gesture by multiple view controllers -


i need detect shake gesture in ios. have done usual stuff , works fine. thing have multiple view controllers in uitabbarcontroller , wish each of them detect shake gesture.

when shaking in of view controller , switched particular tab. problem if shake in 1 view controller , try shake in other controller gesture not detected unless action performed in controller.

i know need set becomefirstresponder need know how can property set current tab of uitabbarcontroller shake gesture recognised tabs.

write code detection (usually via notification observer shake) in base view controller , and controller subclass this. can write code move particular tab in base controller.

problem solved.


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -