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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:07:19+00:00 2026-06-13T02:07:19+00:00

I’m new to obj-c/iOS and I’m having trouble understanding conceptually at least viewControllers. I’ve

  • 0

I’m new to obj-c/iOS and I’m having trouble understanding conceptually at least viewControllers. I’ve read a lot of the Apple Doc’s, I’ve even used viewControllers to some extent in xCode, but I still don’t quite get what they are, or what are the best ways to use them.

I’ve been an AS3 dev for many years so my mind works in the context of MovieClips/Sprites and the Display list to get graphics on the screen.

Ok so from my understanding…

  1. A viewController is a kind of class that handles graphics in some
    fashion and then allows you to do something with them?? What is it in it’s most basic sense?
  2. You seem to add viewControllers to a Window class, which I guess is a bit like
    adding a display Object to the Display list?
  3. What is it that a viewController does for you in it’s most basic sense?
  4. Are there certain things you definitely can’t do with them or shouldn’t do
    with them?
  5. Do viewControllers need to be connected in some way to the rest of the iOS framework to function (apart from being added to a window).
  6. How exactly do they use data? (I’ve read up on MVC, I understand that conceptually this is a slightly different question) as I understand it you don’t hardcode data into a viewController, so how does a viewController access any static data?
  7. Let’s say I just wanted to throw an image up on the screen, exactly what part would the viewController play in that process? is it just something which handles only one small aspect of that process or is it the whole show and handles everything?
  8. Does one viewController handle multiple images? is it like it’s term, a “controller” for all the images presented on screen, or does it handle one image at a time?
  9. What is a viewControllers connection to the image(s) it handles? it contains references to them?

I’m using the Sparrow framework which is helping but I would still like to be able to get my head around what viewControllers are so I know how to use them properly.

Ha, I apologise for the above I know it must look like I’m completely confused 🙂 thanks for any advice.

  • 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-13T02:07:19+00:00Added an answer on June 13, 2026 at 2:07 am

    Hope this helps you:

    1. A viewController is a kind of class that handles graphics in some fashion and then allows you to do something with them??

      It’s the glue between a View (Xib File) and the Data (Could be
      CoreData or whatever you’re using in the backend). All the UI Elements
      you are using in the View you normally define as properties in the
      controller to get access to them.

    2. What is it in it’s most basic sense?
      You seem to add viewControllers to a Window class, which I guess is a bit like adding a display Object to the Display list?

      I don’t really know AS3 so I cannot compare Display lists with ViewControllers. But basically ViewControllers are there to handle
      different types of transitions between the views and accessing
      (setting/reading) the data which is displayed in the view.

    3. What is it that a viewController does for you in it’s most basic sense?

      Like I’ve written above. Most basic sense they interpret what the user
      does on the view and depending on the action of the user changes the
      model.

    4. Are there certain things you definitely can’t do with them or shouldn’t do with them?

      It is always hard to keep the border between model and controller.
      They are pretty close to each other. So what I normally try is to
      delocate all logic stuff (like calculations, database access and so
      on) this does more belong into the model part. But of couse you’re
      using these external classes in the controller.

    5. Do viewControllers need to be connected in some way to the rest of the iOS framework to function (apart from being added to a window).

      Well like you already have written the ViewController needs to be
      connected to a view. Otherwise it would not make much sense. There are
      different subtypes of UIViewController such as UINavigationController
      where you probably need to overwrite some other methods to provide the
      whole functionality wanted by these special subtypes.

    6. How exactly do they use data? (I’ve read up on MVC, I understand that conceptually this is a slightly different question) as I understand it you don’t hardcode data into a viewController, so how does a viewController access any static data?

      There could be different approaches to store the data. Simplest way
      would be to have the data directly stored in the UIViewController.
      This could be a custom class which is the container of the data. All
      changes are directly written into this class and displayed by the
      UIViewController. But in most of the cases it makes sense to use
      CoreData (Which is responsible for reading/writing the data into a
      sqlite database). You could look at CoreData as your model and the
      UIViewController gets the data from there and passes the data which
      the UIViewController has received from the View back to it.

    7. Let’s say I just wanted to throw an image up on the screen, exactly what part would the viewController play in that process? is it just something which handles only one small aspect of that process or is it the whole show and handles everything?

      The UIViewController would store an internal Property (UIImageView *)
      which is in the Interface Builder connected with the UIImageView you
      have created in the Xib file. So over these property you can change
      through your Controller the image.

    8. Does one viewController handle multiple images? is it like it’s term, a “controller” for all the images presented on screen, or does it handle one image at a time?

      Yes, this isn’t a big problem. You can have as many images you want.
      You just need to have the properties defined in the UIViewController
      and linked to the View.

    9. What is a viewControllers connection to the image(s) it handles? it contains references to them?

      Yeah, its like a reference to the UIElement. You can then change
      whatever property of the UIImageView you want directly from the
      UIViewController

    Some useful links:

    • Apple Official ViewController Guide
    • Apple Official ViewController Basics
    • You should have a look at Storyboards (U can use them since IOS 5.0)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm having trouble keeping the paragraph square between the quote marks. In firefox the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I know there's a lot of other questions out there that deal with this
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I have a jquery bug and I've been looking for hours now, I can't

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.