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

  • SEARCH
  • Home
  • 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 7668291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:19:35+00:00 2026-05-31T15:19:35+00:00

Is it possible to push a new viewController into an existing view within another

  • 0

Is it possible to push a new viewController into an existing view within another view controller?

Here is my setup to begin with:

enter image description here

You can see that I have a UITableView. When a cell is tapped, a new view controller is pushed using this code;

DetailTableViewController *viewcontroller = [[DetailTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
viewcontroller.item = (MWFeedItem *)[itemsToDisplay objectAtIndex:indexPath.row];
[self presentViewController:viewcontroller animated:YES completion:nil];
[viewcontroller release];  

Unfortunately this looks like this though and sits on top of the bar at the top saying “Will Roberts”

enter image description here

Why is this happening as it’s clearly outside of the view I set it to be pushed from…

  • 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-31T15:19:36+00:00Added an answer on May 31, 2026 at 3:19 pm

    //Presenting new view controller with navigation controller will help you.

    DetailTableViewController *viewcontroller = [[DetailTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
    viewcontroller.item = (MWFeedItem *)[itemsToDisplay objectAtIndex:indexPath.row];
    [self.navigationController presentViewController:viewcontroller animated:YES completion:nil];
    [viewcontroller release]; 
    

    //Edited

    DetailTableViewController *viewcontroller = [[DetailTableViewController alloc] initWithStyle:UITableViewStyleGrouped];
    
    UINavigationController *nav1=[[UINavigationController alloc]initWithRootViewController:viewController1];
    
    [self presentModalViewController:nav1 animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Why can't I push a new view controller onto the current view?
When I click a control, I want it to push a new view controller
I want to push a new view when the user select a cell on
I'm new to Git (coming from SVN). Was wondering if it's possible to setup
Is it possible to programmatically push files to a wireless SD card - like
Is it possible to deploy a website using git push ? I have a
Is it possible to get Mercurial to show progress of long-running push or pull
I have just heard that - push notification is possible in iPhone I need
Is it possible to automatically encrypt files via 'git push' before transferring to a
Subversion: is it possible to commit local revisions without pushing them, and push them

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.