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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:31:39+00:00 2026-06-03T03:31:39+00:00

What happens when [super loadView] or [super viewDidLoad] is written? I tried to remove

  • 0

What happens when [super loadView] or [super viewDidLoad] is written? I tried to remove the code but the stack overflows and goes into infinite loop. Can someone please explain why is this required?

  • 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-03T03:31:40+00:00Added an answer on June 3, 2026 at 3:31 am

    First of all, when you override loadView, to create your own views manually, you should NOT call the superclass’s implementation. This is because you would be creating a view manually, and using those instead of the view that would be created by UIViewController‘s implementation. (See the loadview documentation.)

    But when you override viewDidLoad, you should indeed call the superclass’s implementation. This is because UIViewController‘s implementation of viewDidLoad does some internal bookkeeping, and so you want to run your custom viewDidLoad code in addition to what the superclass does.

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

Sidebar

Related Questions

I wanna to implement an effect similiar to that which happens when super Mario
Code: public class SMH extends Activity { public void onCreate(Bundle b) { super.onCreate(b); setContentView(R.layout.main);
I try to create a customized legend in my chart but something strange happens
Where is [super init] method actually located and what happens if we negotiate calling
I have code that runs well on the simulator but as soon as I
The first button works fine, but when I click to the second, nothing happens.
I Know this is super simple but for the life of me i cant
I'm getting this error on this code: super(Trace Masker); setLayout(new BoxLayout(getContentPane(), BoxLayout.PAGE_AXIS)); label1 =
I have an activity with following code. @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
This is a super naive question (I know), but I think that it will

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.