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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:15:14+00:00 2026-06-14T09:15:14+00:00

i have own class which is extends from UITableViewController. After this line MyClass *obj

  • 0

i have own class which is extends from UITableViewController.
After this line
MyClass *obj = [[MyClass alloc] init];
i have
obj.view.frame.orign.y = 20

after i push this custom view via navigation controller – i check y coordinate in viewDidAppear and it became 0.
so strange

Why ? Is it because my custom table view below status bar which height is 20 ?
or something else.
If it because status bar, why i can create UIButton in (0,0) and it below status bar ?

  • 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-06-14T09:15:16+00:00Added an answer on June 14, 2026 at 9:15 am

    The behavior that you see is normal:
    – You first create your view controller, it is not attached to a view hierarchy, by default it takes the coordinate as if it was the root controller, y=20 because of the status bar
    – Then you push the view controller, it is resized to fit in the navigation controller, the frame coordinates are the coordinates in relation to the parent frame , i.e. y=0 is the top of the navigation controller, which is equivalent to y=20 in the main window. pushViewController resizes the frame, see documentation http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html

    The view is automatically resized to fit between the navigation bar
    and toolbar (if present) before it is displayed.

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

Sidebar

Related Questions

I'm trying to hide window after its startup. I have own window-class which is
I have made my own exception class which derives from runtime_error and is getting
I have a class called Flamethrower which naturally has its own ammunition that is
I have own project and i would like add for this class same as
I have created my own Attached Property like this: public static class LabelExtension {
I have a class that defines its own enum like this: public class Test
I have set of classes which inherit from a single super class: Super |
I have created an abstract class FbActivity, which extends Activity to connect to facebook
I have create my own NSOpenGLView class, right now the data that i want
I have created my own button class called custom_btn. I created it on the

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.