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 09-19-2010, 05:53 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 2
Fisherking is on a distinguished road
Default [SOLVED] Tabbar and navigationBar failure!

Hi,

I will turn grey haired if I'm not getting this right soon!

See if I can explain this. I don't think it's hard to code but, I'm not getting it right.

I have a mainWindows.xib where I have a tabbar. The third tabitem is a navigationController and loads (via IB) a view from anthoner .xib (event.xib). The view and a navigationbar is showing fine. I have connected this view to a EventViewController (inherits UIViewController) in IB to a IBOutlet in the code.

The .xib that is loaded in the navigationController shows a table with some entries and I get respons if I tap one if them. I can load a third view from a third .xib (eventDetail.xib). But this view doesn't show a navigationbar or anything. I load the eventDetail.view with [eventController presentModalViewController: eventDetailController].

I have seen something like [[self navigationController] ...]*to show a new view inside the navigationController, but the eventViewController-class has no reference to navigationController. The mainWindows class (the xAppDeligatate) has but I can't reach it from the EventView-class...

I'm making any sense here? Do you understand my problem? Got any tutorial that solve my problem (i've been looking around :-( )

Thanks!

Last edited by Fisherking; 09-20-2010 at 02:50 PM.
Fisherking is offline   Reply With Quote
Old 09-20-2010, 02:50 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 2
Fisherking is on a distinguished road
Default

Ok, I solved it ... So simple when you know how it's done!

the [self navigationController] ... I had a custom one and tried to call it with that name from the other views as well, but all I have to do was to use the name navigationController!
Fisherking is offline   Reply With Quote
Reply

Bookmarks

Tags
navigationbar, navigationcontroller, tabbar, tabcontroller

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: 307
15 members and 292 guests
2ndSegment, cayladv57, cgokey, dermotos, djohnson, Domele, Hamad, heshiming, linkmx, markuschow, pungs, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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