johan
johan

Reputation: 6666

Reload current view with tab bar

is it possible to create a refresh button in a tab bar that just refreshes the current view? And don't change to another view?

How could this be done?

Cheers!

Upvotes: 1

Views: 533

Answers (1)

Joseph Lin
Joseph Lin

Reputation: 3334

You can do that with a UITabbar and its - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item delegate method.

I won't suggest doing that, though, because that's not how tabbar normally works.

Since you want it to act like a tool bar, why not just use UIToolbar?

Upvotes: 1

Related Questions