Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6927349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:02:34+00:00 2026-05-27T11:02:34+00:00

So we got a Nav Controller with a UITableView for the RootViewController. Then when

  • 0

So we got a Nav Controller with a UITableView for the RootViewController. Then when the user clicks the table cell, we push an EKEventController onto the Nav stack and display details for the event represented by the table cell.

I am trying to add a button on the right side, but it does not show up.

I’m adding the button when the user clicks the table cell.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
{  

    // Upon selecting an event, create an EKEventViewController to display the event.
    self.detailViewController = [[[EKEventViewController alloc] initWithNibName:nil bundle:nil]autorelease];            
    detailViewController.event = [self.eventsList objectAtIndex:indexPath.row];

    detailViewController.allowsEditing = NO;  
    UIBarButtonItem *locationMapViewButtonItem = [[UIBarButtonItem alloc] 
                                                  initWithTitle:@"Map"
                                                          style:UIBarButtonItemStylePlain 
                                                         target:self 
                                                         action:@selector(showMap:)];  
    self.navigationItem.rightBarButtonItem = locationMapViewButtonItem;  
    [locationMapViewButtonItem release];  
    UITableView *eventTableView = [[self.detailViewController.view subviews]objectAtIndex:0];  
    [self.navigationController pushViewController:detailViewController animated:YES];  
}

The right bar button disappears when the EKEvent controller shows up however.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:02:34+00:00Added an answer on May 27, 2026 at 11:02 am

    You need to set the navigation item of the view controller being pushed, so your line:

    self.navigationItem.rightBarButtonItem = locationMapViewButtonItem;
    

    Should become:

    detailViewController.navigationItem.rightBarButtonItem = locationMapViewButtonItem;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this bit of JQUERY: <script> function initNav() { $('.nav tr table td
i got this css stylesheet code #nav li ul { position: absolute; visibility: hidden;
I have a UINavigationController with a UIViewController as the RootViewController. The view controller cycles
I have got a submenu which expands from a nav menu type object when
my problem is that I got 3 submenus in the third nav named Productos
I got this navbar with a dropdown ul on it. <ul class=topbar-nav> <li><a href=index.php>Home</a></li>
I've got your standard table application built right now. Window has a UINavigationController as
So I've got some nav that consists of form checkboxes floated next to a
I've got a relatively basic scenario where I've got a nav HTML element that
at http://www.goodshow.tv I've got a problem with the nav. I have a class that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.