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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:17:34+00:00 2026-05-23T14:17:34+00:00

I am trying to learn iphone programming so please be patient. I have a

  • 0

I am trying to learn iphone programming so please be patient.
I have a simple application implemented using a root model and two views selectable by a Tab bar control. The user enters a value in the view A and pressed a button. The appropriate IBAction of the button sets a property in the root model and then it calls a method(DoCalculation) inside root model to perform some calculations. The result of calculations are a series of numeric data which will be saved in a NSMUTuableArray. This array is used to update the information in view B.
My questions are: Is this a reasonable architecture of this simple app? Do you see any problem with it?

Another question is should I update view B right after the calculations are done in Root model or should I store then in an arrray and the view should update itself when it becomes visible?

  • 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-23T14:17:34+00:00Added an answer on May 23, 2026 at 2:17 pm

    That’s one of many ways it could be done. Retained data can be stored in individual instance variables or in a structure such as an NSMutableDictionary or NSMutableArray.

    Generally you don’t update the view until it’s about to display (eg, in viewWillAppear), since you have to wait until the view is created anyway, before it can be updated. (You can force creation early by referencing the view property of the view controller, but it’s generally better to wait for it to be created by the flow of the app, since a created view occupies a lot of storage.)

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

Sidebar

Related Questions

I am trying to learn iphone programming and I have just upgraded xcode to
I'm currently trying to learn game programming, so I'm starting with a simple application
I am trying to learn my first programming language. Unfortunately I picked the Iphone
I am trying to learn OpenGL on the iPhone using the Super Bible but
I am newbie to iphone programming and trying to learn iphone programming.I need experts
I am trying to learn and build talking puppet iPhone application. The great example
I'm trying to learn Objective-C and iPhone programming, but I'm stuck with a problem.
Hi I'm trying to learn how to write apps for the iPhone. I'm using
I am trying to compile old iPhone application project using new LLVM 3.0 compiler.
I'm trying to learn iOS (4.3) programming and got stuck on this. I'm using

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.