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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:04:44+00:00 2026-05-30T20:04:44+00:00

I have a UIViewController view that I wanted to insert below a subview: [self.view

  • 0

I have a UIViewController view that I wanted to insert below a subview:

[self.view insertSubview:ntVC_.view belowSubview:shareView_];

The shareView frame Y is 959 and it’s height is 44. So when doing this shouldn’t ntVC frame Y be at 1004? However it’s at 925 now. Any idea?

  • 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-30T20:04:45+00:00Added an answer on May 30, 2026 at 8:04 pm

    The method insertSubview:belowSubview: refers to the view stack not a view’s coordinates.

    You need to do the calculation of where to position the view yourself.

    +-------+         +-------+
    |       |         |       |
    |  A +-------+    |  A    |----+
    |    |       |    |       |    |
    +----|  B    |    +-------+    |
         |       |         |   B   |
         +-------+         +-------+
    

    In terms of the view stack

    • In the example on the left A is below B
    • In the example on the right A is above B
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UIPopOverController that shows a UIViewController with a UITableview in its view.
I have a UIViewController, a switcher that will basically just rotate a view from
I have a UIViewController whose view has a custom subview. This custom subview needs
I have a UIViewController, and within that view i have UITableView added in IB
I have a UIViewController that materializes its view in loadView (i.e. no nib). Per
I have a UIViewController that is initialised with a correct frame, however somewhere in
I have a view that is UIViewController (root) that handles ads and a UINavigationController
I have a View that has a UIWebView, and an OptionsPane (Custom UIViewController with
I have a main view that manually creates a UIViewController (not a UINavigationController) and
So I have a UIViewController that has a UITabBar in the view. I want

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.