iOS go to specific tabbar-view from another view

I have 5 views with a button and a tabbar controller that contains 5 views. I am not using the storyboard. I want to go from my views to a specific tabbar-view. When I create a segway to the destination view, the tabbar is not included.

I've tried to use the

-(IBAction)goHome {
    tabController.selectedIndex = 1;
    [[self navigationController] pushViewController:tabController animated:YES];

method. But it doesn't work. Any suggestions?


It seems like that you forgot to define all the class name and NIB name of tabbar (that you want to show particular view) in the XIB utilities , and make sure taht should be the same also

Need Your Help

Extracting image value from Array in Codeigniter

php mysql

I'm having issues extracting a value from an array of images via Codeigniter/MySQL. So i have a table called "image" in my database and if i echo out it i get the following code:

How to access controller method in another controller in cakephp?


I have extended class A in class B and i want to use class A methods in class b.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.