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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:09:48+00:00 2026-05-26T14:09:48+00:00

I currently have a subview covering the whole screen and with a UIButton on.

  • 0

I currently have a subview covering the whole screen and with a UIButton on. When I press the button, I bring up a different view for sending an email using [self presentModalViewController:controller animated:YES]; this brings up the new view (viewcontroller) but behind the subview. If I press a button to removeFromSuperview and the subview dissapears, then the email viewcontroller is visible.

Is it possible to set a Z-index or something when using presentModalViewController?

I don’t want to remove the subview before it slides up. I want it to remain there the whole time while the user types his email etc. So when he is done, the subview still shows.


Showing the subview (which has the button on)

[self.view.superview addSubview:pinSpecsView];

Clicking the button

UIActionSheet *popupQuery = [[UIActionSheet alloc] initWithTitle:@"Share" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Email", @"Message", nil];
popupQuery.actionSheetStyle = UIActionSheetStyleDefault;
[popupQuery showInView:self.view];
[popupQuery release];

Showing the email controller after “email” was selected

    MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init];
    controller.mailComposeDelegate = self;
    ....
    [self presentModalViewController:controller animated:YES];
  • 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-26T14:09:49+00:00Added an answer on May 26, 2026 at 2:09 pm

    I think you should be adding pinSpecsView to self.view instead of self.view.superview.

    [self.view addSubview:pinSpecsView];
    

    To change Z order of subviews use sendSubviewToBack: bringSubviewToFront: methods.

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

Sidebar

Related Questions

I currently have a Container View Controller which is home to a button. When
We currently have one publisher and four subscribers using merge replication. Due to a
I have a UIViewController whose view has a custom subview. This custom subview needs
I currently have a view that is contained on a view. The main view
I currently have an application that does the the following: S: Loads a view
I have a view that when a button is clicked, it brings up a
I currently have a xib that is a standard view that has another view
Currently have a drop down menu that is activated on a hover (from display:none
Currently have password protection on my main and sub directories, however I'd like to
I currently have a XSLT 2.0 Stylesheet that I am trying to remove empty

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.