iPhone SDK: How can I programatically determine which tab button has been pressed? -


I have a tab bar with 4 buttons on it. When the user presses the A button, I want to call Function A. When user presses the B button, I want to call function B

I have implemented the UITBBrDAGate.

  I have this code and it is expected when the button is pressed on any tabbar - (zero) tabbar: (UITabBar *) tabbar selected: (UITabBarItem *) item  

What I see is the code snippet that shows which button should be detected

Thanks to iwat's comments below I'm easy to edit it.

>

}


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -