0

I have a view that has a couple of buttons and I have a tab bar view controller with two different tabs. When I press one of the buttons in the view controller I want to jump to a specific tab in the tab bar view controller.

How would I go about this?

Justin Paulson
  • 4,388
  • 1
  • 23
  • 28
bnjmn.myers
  • 409
  • 2
  • 6
  • 15
  • This is different because the buttons are not in the tab view or tab bar controller. They are in a completely different view. – bnjmn.myers Aug 16 '13 at 16:11
  • Either edit to include those details and try to get it re-opened, or ask a question that makes those details clear. Your question now focuses on selecting a certain tab rather than dealing with the complexity of communicating with a tab bar controller from a view controller that's not in one. – Carl Veazey Aug 16 '13 at 18:06
  • I apologize I should have said I have view CONTROLLER and a tab bar view controller. – bnjmn.myers Aug 16 '13 at 19:32

1 Answers1

3

try this

[self.tabBarController setSelectedIndex:1];