I have taken UITabbar on that i have used two buttons as TabItem.I want to perform two different Action by clicking on that two button so how can i get particular Action on clicking on particular Tabbar button.
-(void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item
{
if(item.tag==1)
{
//your code
}
else
{
//your code
}
}
You can use UITabBarDelegate
for keeping the track of which button is pressed by assigning the tag
or title
for title
you can use item.title
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With