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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:23:02+00:00 2026-06-01T14:23:02+00:00

When a view controller is first instantiated, it usually creates or loads objects it

  • 0

When a view controller is first instantiated, it usually creates or
loads objects it needs through its lifetime. It should not create
views or objects associated with displaying content. It should focus
on data objects and objects needed to implement other critical
behaviors.

The above is from the iOS reference :

http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ViewLoadingandUnloading/ViewLoadingandUnloading.html#//apple_ref/doc/uid/TP40007457-CH10

The documentation goes on to describe a view load sequence with Storyboard.

My question are :

1

Since a view controller would be associated with a nib file, which contains view objects; And its “viewDidLoad” method seems to be designed for configuring view objects at load time. So how should the documentation’s suggestion :

“should not create views or objects associated with displaying content”

be interpreted ?

2

Does question 1 related to whether we use Storyboard or not ?

  • 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-01T14:23:03+00:00Added an answer on June 1, 2026 at 2:23 pm

    Not sure I get your question right, but here’s my explanation:

    1. initialization and view creation are two separate steps. Let’s say I have a view controller with table as IBOutlet which should display a list of recipes stored in core data. In my initialization method I’d fetch the data from CoreData and store it in an array or fetched results controller. I don’t need table for that, hence I do nothing with self.view property (which calls the viewDidLoad if there is no view yet). In viewDidLoad I call [tableView reloadData] to redraw the cells so that they display the data from my controller created in controller’s initializer.

    2. I don’t think it’s related, but storyboard should be mere scaffold for your view controllers replacing separate nibs with single file.

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

Sidebar

Related Questions

I have a UIViewController and I'm navigating from my first view controller to second
I have a partial view that loops through its Model (a list of things)
My appDelegate, in the method didFinishLaunchingWithOptions I load my view controller then create a
I have a View Controller I'm reusing to edit individual objects (NSString, NSNumber, NSDate)
I have two views with navigation controller: first view, there are empty text fields
I've an app that keep four variables in the first view controller. The second
When my view controller is first presented, I want it to potentially update a
I am using two view controllers. On button action of first view controller i
I have two view controllers that allow changes to the Address Book. The first
First, in my root view controllers viewDidLoad, I initialize an NSDictionary with arrays of

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.