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 3678498
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:20:55+00:00 2026-05-19T03:20:55+00:00

I have an app which goes through a set of screens within a navigation

  • 0

I have an app which goes through a set of screens within a navigation controller, then there is a screen with a tab controller, which one of the contained views wants to display a modal view controller that should be displayed over the top of the whole app (not full screen though).

It’s all working fine, but the modal window is partially covered at the top by the navigation controller. I’ve tried using self / self.tabBarController / self.navigationController / self.tabBarController.navigationController to call presentModalViewController but they either don’t work or still display the modal window underneath.

I’ve been searching for an answer to this all day, everyone else seems to have problems when it DOES overlap, not when it doesn’t.

Any ideas? Thanks. (code, screenshots & video below)

- (IBAction)add:(id)sender {
  // create the view
  AddAttainmentController *addScreen = [[AddAttainmentController alloc] init];
  // pass in a selected pupil
  [addScreen setPupils:[NSMutableArray arrayWithObject:pupil]];
  // add the view to a navigation controller
  UINavigationController *control = [[UINavigationController alloc] initWithRootViewController:addScreen];
  // place the navigation controller on the screen
  [self presentModalViewController:control animated:YES];
  // release at the end
  [control release];
  [addScreen release];
}

Screenshots: http://cl.ly/032v2k0t0N1s1m3H0511 (you can see the navigation bar as the modal window slides in) http://cl.ly/1h0o453Y3Z051P3S1S37 (the navigation bar of the modal window is covered by the original)

Video: http://cl.ly/1e2J3o1q3V1l1j470m12

  • 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-19T03:20:56+00:00Added an answer on May 19, 2026 at 3:20 am

    It sounds like you failed to consider some of the restrictions and assumptions around using Apple’s view controller classes and are getting undefined and unexpected behavior as a result.

    Tab bar controllers expect to always be at the root of your controller hierarchy. From the class reference:

    When deploying a tab bar interface, you must install this view as the root of your window. Unlike other view controllers, a tab bar interface should never be installed as a child of another view controller

    Additionally modal view controllers (and all view controllers for that matter) are assumed to fill their window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

there is my situation. I have same activities which goes one by another, no
I have an game app which occasionally plays sounds. When the phone goes into
I have an app which is based on a UINavigationController . There is a
We have in store an app which displays a series of videos through HTTP
I have a loop which goes through each item a list and adds it
How does one best retain data within a Fragment as its activity goes through
I have app in which i have recorded sound files i want that i
I have a app which will download a file from web. The download action
I have an app which has a map and some POI on it. I'm
I have an app which contain some images in res/drawable/ and shows them in

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.