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 12-28-2009, 04:12 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Location: Bangalore, India
Posts: 1
Default Tab Bar + Programmatic Navigation Controller => Navigation Bar doesn't show up

I want to write a tab bar application with two views. The first view should allow navigation.

I first used Interface Builder to make the tab bar and embed the views into it. It worked fine.

I then went to my first view and embedded a table view into it. I set my viewcontroller as the data source of for the table view and wrote the mandatory hooks.

This worked fine as well.

Next I wanted to make the navigation controller. Now this is something I'm not too sure about. I tried subclassing my first view from UINavigationController instead of UIViewController. This brought up the navigation bar without a title on testing with the simulator. Which is a good sign. But setting self.title in awakeFromNib did not set the title.

I googled some, and found this post.

I dropped the IB way of doing it and rewrote the thing programmatically. Now I don't even get the navigation bar.

What am I doing wrong?
spectre is offline   Reply With Quote
Reply

Bookmarks

Tags
bar, navigation, tab, uinavigationcontroller, uitabbarcontroller

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
» Online Users: 261
17 members and 244 guests
14DEV, @sandris, ADY, ArtieFufkin10, bookesp, ckgni, Dani77, DarkAn, HemiMG, iDifferent, jakerocheleau, JasonR, prchn4christ, Rudy, Speed, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
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:48 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0