Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2009, 10:41 AM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 1
Unhappy IB - Can't get view to display for navcontroller

I'm so new it's not even funny. But I created a simple view application, and I've since added the tabbar and a navigation controller for each tab button which I've successfully gotten to display an empty UIViewController.

However, now I'm trying to connect the UIViewController to an identically named NIB file. Here's what I've done so far:

1.) In the nib file I've created a simple button and I've linked the view to the file's owner which in turn references the original viewcontroller as it's class.
2.) The class viewController is setup with an IBOutlet UIButton as well.
3.) In the app delegate file I'm loading this by:
Code:
searchViewController = [[SearchViewController alloc] initWithNibName:@"SearchViewController" bundle: nil];
searchViewController.title = @"Search";
UINavigationController *searchNavController = [[UINavigationController alloc] init];
[searchNavController pushViewController: searchViewController animated: YES];
[searchViewController release];

tabBarController.viewControllers = [NSArray arrayWithObjects: searchNavController, FavoritesNavController, nil];
The problem is that I was able to load the UIViewController perfectly fine until I started trying to load it with a NIB file. At the moment I have an empty space in the tab bar where search went before (the space is actually allocated) and there's a blank view.

What could I be doing wrong? Any help is GREATLY appreciated!
dlg_noob is offline   Reply With Quote
Reply

Bookmarks

Tags
interface builder, navigation controller, nib

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,765
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:33 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0