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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:19:37+00:00 2026-05-16T23:19:37+00:00

I have a root view which contains a table and a button. When I

  • 0

I have a root view which contains a table and a button. When I press the button a view is loaded on top of the root view but keeps my root view visible. The view that appears after the button is pressed is suppose to act as a menu that is scrollable. My problem is that when I want to close the menu that appears.

Im using the [self.view removeFromSuperview] on the subview that appears on top of my root view. When the subview disappears I’m not able to make selections from my table.

How can I get rid of my subview and still keep control of my root view. Also how can I change what my root view displays based on the menu selection I have made. Since my menu is a subview of my root view.

I’m not sure if these things are possible. I have been experimenting but so far I lose control of my root view. I’m able to scroll up and down my table and relaunch the menu subview. But I cannot make any selections from the table. Also I’m unable to change what my root view displays after I have made a choice from the menu.

Please if anyone could shed some light on this issue for me I would greatly appreciate it.

  • 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-16T23:19:38+00:00Added an answer on May 16, 2026 at 11:19 pm

    Okay, I don’t fully understand what you are doing, so if my answer is rubbish, please forgive my.
    As far as I understand, you have a ViewController with another ViewController as a subview. If so, you might very well run into unexpected behavior, since, according to the documentation

    Each custom view controller object you create is responsible for managing exactly one screen’s worth of content.

    There are some exceptions (e.g. a ViewController inside a TabBarController) but a ViewController inside a ViewController is definitely not the way to go.

    So, if you want to show a ViewController after your Button is pressed, show it as a Modal ViewController by using the “presentModalViewController:animated:” method of your “superview”. You can make your selection in the ModalView and dismiss it via “dismissModalViewControllerAnimated:”

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

Sidebar

Related Questions

I have a root view controller which contains an outlet for my login view
I have a tree view that contains 3 roots and each root contains 3
Hey guys, I currently have a root table view which has a toolbar at
I have a view that contains a UITableView and a UILabel which works perfectly
I have root view with both tab bar and navigation bar visible at the
So I have a root view with table view. I display the toolbar like
I have a xib with a view which contains two views which each contain
I have a CoreData database which works on the root view controller. I have
I have code in my app that adds a UIView to the root view
I have a ViewController that contains a UITableView in which the cells are created

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.