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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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 06-13-2010, 10:57 AM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 2
Motoconcho is on a distinguished road
Default UINavigationItem in UITableViewController with Interface Builder

Hi folks.
I'm using a NavigationController to navigate between different views.
Every view has his own xib file (created and setup automatically by xcode checking ''with XIB for user interface'' during file creation procedure).
The root controller is a UITableViewController.
I'd like to customize the navigation bar by adding right and left buttons.
I know how to do it programmatically, apple site and doc are full of examples.
What I would like to do is to do the same customization with Interface builder.
I simply cannot find a proper way to do it.
I added a Navigation Item to the root controller xib. I noticed that it came with 4 outlets (back, left, right and title views) so I added two more Bar Button Item to the xib and hoocked them up with the Navigation Item outlets (left and right).
Now... off course these buttons don't show up, and it's probably because I didn't connect the Navigation Item to anything... and that's the point! How do I connect my Navigation Item in interface builder with the navigationItem property of the TableViewController (file owner) ?
Is my procedure correct (and simply needs this final step) or is it completely wrong ?
I refuse to believe that there's no way to do such a setup entirely in Interface Builder...
Again, I know that doing that in code is simple, I'd just like to do it entirely in Interface Builder. Is that possible?
Motoconcho is offline   Reply With Quote
Old 06-17-2010, 06:22 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 2
Motoconcho is on a distinguished road
Default

No answers yet... uhm... nobody cares or nobdy knows ???
C'mon guys...
Motoconcho is offline   Reply With Quote
Old 07-11-2010, 11:23 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 13
Scenario is on a distinguished road
Default

I'd like to know the answer to this, too. It used to be possible, back in 2.0 or so. But the navigationItem outlet seems to have been deprecated and now you get some kind of "you should consider embedding your UINavigationItem instead" with no clue what that's supposed to look like in IB. There's no outlet to connect and your UINavigationItem will get ignored at runtime, so I have to create those buttons in viewDidLoad. This defeats the purpose of using IB to layout your views.
Scenario is offline   Reply With Quote
Reply

Bookmarks

Tags
interface builder, navigationcontroller, uinavgationitem

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: 334
9 members and 325 guests
Absentia, Domele, fiftysixty, givensur, heshiming, linkmx, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

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