How to add a ViewController to a Navigation Controller?

How to add a ViewController to a Navigation Controller, if it contains a TableView as root?
I'm trying to add a UIViewController (AddProjectViewController) to a Navigation Controller (navigationController), which has a Tableview set as root, and it does not work.
This is how I have the files setup: http://d.pr/y8rt
The code is in ProjectsController.m - please help

Hi Andrei, and welcome to the Dev Forum!
andreipotorac wrote:
I'm trying to add a UIViewController (AddProjectViewController) to a Navigation Controller (navigationController), which has a Tableview set as root, and it does not work.
You didn't say what user action should bring up the next controller. But for example, if you want an instance of AddProjectViewController to be pushed onto the nav controller's stack when the user selects a row in the table, something like this should work:
// ProjectsController.m
#import "ProjectsController.h"
#import "AddProjectViewController.h"
@implementation ProjectsController
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
AddProjectViewController *nextController = [[AddProjectViewController alloc]
initWithNibName:@"AddProjectViewController" bundle:nil];
// Pass selected object info to the new view controller here. E.g.:
// Project *project = [projectsArray objectAtIndex: [indexPath row]];
// nextController.projectTitle.text = project.projectTitle;
[self.navigationController pushViewController:nextController animated:YES];
[nextController release];
- Ray

Similar Messages

  • How to add links in the detailed navigation area of the navigation panel

    hi everyone,
    I had developed 4 iviews. 2 of those iviews i added to 2 different pages. And the 2 pages added to workse and assigned a role. i assigned this role to user. and it is working fine.
    i want to add remaining to iviews as links.
    how to add the links in the detailed navigation area of the navigation panel.
    regards
    sunil kumar.ch

    Hi sunil,
       Create a JSPDynPage component(C) having 2 hbj:link whose hrefs point to these 2 iViews(A and B). U can get the href of the iView by previewing it(for A and B). Create an iview from the par component (C) and add it to the DLN so that it shows the links to ur iViews(A and B). U can make the Show Tray property of this iView (C) to false.
    Regards,
    Harini S

  • How to add links to left menu navigation

    I go to Site Settings > Look and Feel > Navigation and add the links to "Structural Navigation: Editing and Sorting" (which is blank even though my left menu navigation has 8-10 links). I added some some links but these never display.
    I am able to modify the navigation menu just fine on project subsites, just not the PWA

    Will assume you are using PS2013. This is by design. The left navigation (Quick Launch) for PWA home page is controlled by a different setting. You can add your link by navigating to
    Server Settings >> Quick Launch
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Hi! how can add a fullscreen button to navigation panel of Firefox? i can't see such button in view control panel settings...

    i use Firefox 3.5.3

    Why are you still using that old unsupported version? <br />
    View > Toolbars -> Customize - not in the Control Panel <br />
    The 3.5 versions didn't have a Full Screen button, wasn't added until Firefox 3.6.

  • How to Add VM XP Machine to Domain Controller

    Hi,
    I have a Server running Windows Server 2008 R2 Enterprise Edition and its a Domain Controller / AD
    in the same Server i have a Hyper-V Virtual Machine running Windows XP and installed the legacy network driver and can see the network icon on the VM and mannually entered the IP for that but i cannot promot it to my Domain can any one help me..

    I take it you have a WS 2008 R2 server with Hyper-V and AD roles installed, with 1 WinXP VM.
    I suppose you mean to join the XP VM to the domain, not promote it.
    I recommend:
    Upgrade your Hypervisor to 2012 R2
    Follow best practices. Only Hyper-V role on the physical machine. Setup a dedicated VM as a DC
    Use Win8.1 not XP. XP is no longer supported.
    If you must use XP temporarily, no need for legacy vNIC, use the regular Network Adapter
    To join the domain, is a matter of troubleshooting networking. Make sure the DNS server IP on the VM is set to the domain DNS servers and they're reachable/pingable
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable)

  • How to add an AP to a Controller

    Hello, 
    I'm not familiar with the process of how to add an access point to a controller. DHCP with option 43 has been configured for the subnet where the AP will be installed. The AP has obtained an IP address and I'd like to know how to discover it on the controller and add it.
    Thanks in advance for your assistance. 
    Best, ~zK 

    Hi Zk,
    You have to use DHCP option 43 in dhcp pool configured for AP to find out the WLC:
    option 43 hex <hexadecimal string> 
    More info about DHCP Option 43: http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/97066-dhcp-option-43.html
    I will try to keep AP and WLC on same subnet.
    More info about LAP registartion to WLC:
    http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-lan-wlan/70333-lap-registration.html
    Regards
    Dont forget to rate helpful posts

  • How do I add an image to my navigation bar?

    How do I add an image to my navigation bar? I created my own. Let's say for example I wanted to a page dedicated to the lakers rss feed, and instead of having text in the box "Lakers", I want it to be the lakers logo. I already have the hyperlink in that box working.

    That didn't sound right:
    How do I add an image to my navigation bar? I created my own. Let's say for example I wanted to have a page dedicated to the lakers rss feed, and instead of having text in the box on the bar that reads "Lakers", I want it to be the lakers logo. I already have the hyperlink in that box that will direct you to that page.

  • How to add a navigation Panel and Zoom Slider Bar using Java API

    Hello,
    I am using Mapviewer Java bean as I have to use Oracle Mapviewer in Java Stanalone application.Please can anyone tell me how to add a Navigation panel and Zoom Slider in Java API. I found the API s for same in Java Script but not in Java.Kindly help.
    I am using Oracle Mapviewer 11g.

    This is forum sponsored by Adobe make of Acrobat and Reader. Since Chrome and FireFox web browser have chosen to use their own viewer you might get more help in their forums or customer support.

  • How do I add an image above the navigation bar?

    I'm trying to add an image above the navigation bar and can't seem to do it without covering the links. Does anyone know how to do that?
    Thanks!

    Hi,
    select the page you want to add the image to
    open up the Inspector and go to the Page Tab (second from left)
    Choose Layout and increase the size of Header Height
    Regards,
    Cédric

  • How to add document navigator control into a plug-in window?

    I develop a filter plug-in for Photohsop CS2, but I wonder how to add navigator controll in the plug-in window. The navigator works int the same way like Photoshop navigator - moving cursor on the navigator makes the image scroll in the main previes. I want to have both, the navigator and a main preview window in the filter plug-in window. I saw it many times, however, I did not find example in Photoshop CS2 filter SDK.
    If somebody could point me to a resource, that could get me to the right track, i would be glad.
    Thanks
    Rene.

    Chris hello,
    It is good to know that plugins can not control the docunment view in Photoshop. However, my idea was to have preview in Photoshop plug-in window, and then to have small navigator that would scroll the preview. Exactly like on this Photoshop plug-in:
    http://data.unipixels.com/screenshot.jpg
    Please notice tha navigator on the right side of the window. Moving the red rectangle in it will scroll the middle preview window.
    With regards,
    Rene.

  • How to add Navigation Level to the Portal?

    Hi All,
    How to add Navigation Level to the Portal?
    for example:
    1st Level is the Role
    2nd Level is Worksets/Folders
    I want that the 3rd Level will contain more Worksets/Folders and will be under the 2nd level and not in the "Detailed Navigation".
    I tried to change the "Number of display levels" in the framework page but it didn't help.
    Attached a picture with the required result (of course, for my roles)
    http://img457.imageshack.us/my.php?image=toplevelnavigation7xy.jpg
    Thanks, Omri

    Hi Omri,
    in fact, almost one year ago we did something similar on a project basis, but as already stated here, this was done by modification. What we did was providing a dropdown box within the masthead, containing the first level, and the second and third level now have been displayed where normally the first and second level are. That was a ten days solutions, some very fine granulated work. But nice
    Anyhow, nowadays this can be more easy using the LightFrameworkPage (if that's OK for your purpose) and the Navigation Tag Library, see http://help.sap.com/saphelp_nw04/helpdata/en/42/f35146a7203255e10000000a1553f7/frameset.htm for details.
    Hope it helps
    Detlev

  • I created a navigation page and published as portlet now how to add this pg

    I created a navigation page and published as portlet now how to add this page... i dont see in the portlet staging area.... i left the check mark publish as portlet on when i created the page...
    how do i add this to the page...

    The Navigation Page Portlet should be available in the Portlet Repository - select Published Portal Content -> Your Page Group Name
    Lisa

  • How to add navigation tabs ?

    i am adding a tab :-
    Experience Definition Features --> Edit Navigation Options --> Edit Links
    there is option of adding only one tab it comes when i Add Pages ..
    how to have more tabs ?
    and how to have a tab with out dropdown feature like adminisrtation tab ?
    thanks in advance

    Answering your first question,
    I think we can have only 1 tab with add links option. Not sure how to add second tab there.
    Answering your second question,
    1) Craete a community
    2) In the security page, choose "mandatory with tab" for the respective user group.
    3) This will add a tab to that communty in the header.
    Bharat

  • How to add tabs in the top level navigation

    Hi,
    We are using EP 6.0 sp2 and patch 39, kindly suggest how to add additional tabs to the existing tabs on the top level navigation.
    Swetha

    Hi Swetha,
    Please have a look on following links,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cc/1f6f3ee3c33f7ce10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/4e/3e703e632c7937e10000000a114084/frameset.htm
    Regards,
    Vishal

  • How to add variables to  navigational block?

    Hi,
    How to add variables to navigtional block.
    I have placed navigational block but I am not finding option to add variables to navigational block.Can any one help me out.

    In earlier version when I selecte the navigtaional block and add some characterstic to that navigational block then those characterstic are avaialble for the navigation purpose.But in this version I could add navigation pane .But I am not finding any option to add the characterstics.
    But when I execute the WAD I am getting fallowing error.
    In the Web Application Designer, create a data provider with the name %NM% in template ZMARKTING_PERFOM_GROUP, or change the reference to the data provider in Web item NAVIGATION_PANE_ITEM_1
    Please help me.

Maybe you are looking for