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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:56:59+00:00 2026-05-27T23:56:59+00:00

I have an UIImageView object in one of my viewController view that is preloaded

  • 0

I have an UIImageView object in one of my viewController view that is preloaded with a picture of the wheel. However, the rotation of the wheel is determined by the time of day. So when the program launches, I like the wheel to be initialized by the correct rotation base on the current time. I tried to do this with a rotation in the viewDidLoad method of the controller. While this works, one can visibly see the initial position and the switch to new position based on time.

I like the initialization to be invisible, that is the initialization to occur before the view is loaded. Where should I do that?

  • 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-27T23:57:00+00:00Added an answer on May 27, 2026 at 11:57 pm

    I like the initialization to be invisible, that is the initialization
    to occur before the view is loaded. Where should I do that?

    A view controller’s view will be loaded whenever the controller’s view property is accessed, and -viewDidLoad will be called at that point. Putting your code to set up the view in -viewDidLoad is the correct thing to do. You can’t initialize the view before it’s loaded because it doesn’t exist until it’s loaded, but you should be able to set it up before it’s displayed.

    If you’re not doing anything in your -viewDidLoad that would cause the wheel setup to be deferred to a later point in time, then you might try to load the view controller’s view a little earlier. For example, you could implement -prepareForSegue:sender: in your view controller so that it accesses the view property, which will cause the view to be loaded.

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

Sidebar

Related Questions

I have an object that return a cached image view (UIImageView), which do the
I have two UIImageView objects inside my view (both 320x480 one above the other).
I have a UIImageView object that when clicked it will play a animation, I
Example: I have an class that inherits from UIImageView. An object creates an instance
I have a UIImageView object in one of my classes, but I need to
Hello i have a uiscrollview and i have one object of uiimageview inside the
Say I have a UIImageView that contains an image of an object that is
I have an UIView that contains two UIImageView (one is a cartoon, the other
I have a UIImageView showing a image that is larger than it's frame. It's
I have a UIImageView that starts off with an image (loading.png) specified in IB.

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.