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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:37:41+00:00 2026-05-27T06:37:41+00:00

When view is loaded manually, developer remains in control when it comes to initializations,

  • 0

When view is loaded manually, developer remains in control when it comes to initializations, we choose what initializer to call, what variables to set etc.

When view is loaded from the storyboard segue … what happens to that initializer? Where should variables be set i’d like to be available once view had been loaded?

Please help me understand the sequence here. How is instance of the class created here, who creates it and how can we intervene and help set it up to our liking?

  • 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-27T06:37:41+00:00Added an answer on May 27, 2026 at 6:37 am

    When a view is loaded from a nib or storyboard, it’s -initWithCoder: method is called. Like -initWithFrame:, -initWithCoder: is a designated initializer for UIView. If you’re going to do any custom initialization for a UIView subclass, you should make sure that it happens for both these methods. One common technique is to add a common initialization method that you call from both -initWithFrame: and -initWithCoder:. See my answer to Custom view and implementing init method? for a more detailed description.

    Note that the documentation for -initWithFrame: explains:

    If you use Interface Builder to design your interface, this method is
    not called when your view objects are subsequently loaded from the nib
    file. Objects in a nib file are reconstituted and then initialized
    using their initWithCoder: method, which modifies the attributes of
    the view to match the attributes stored in the nib file.

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

Sidebar

Related Questions

I am trying to save my data from a view that was loaded on
Hello i have a list view control, While the form is being loaded i
Is it possible to have a single iPhone screen with its view loaded from
I have a list view loaded from an array (used from the tutorial on
Which function is invoked once a view (loaded from nib file) has completely finished
I have a view that is loaded in the MainWindow.xib. It is just a
The ActiveScaffold list view has a search form that is loaded via ajax when
I'm working on creating a grouped table view. The data is being loaded alright,
HI have a custom view class that is loaded and placed within my main
Let say I am at my View loaded by my controller named Book. Is

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.