what for do you need to know where did you click on the tab bar?
I ask, since it can most probably be dealt with in a different (probably better) way.