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

  • Home
  • SEARCH
  • 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 6014643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:43:18+00:00 2026-05-23T02:43:18+00:00

I have a small slots game almost developed for iPad as this is my

  • 0

I have a small slots game almost developed for iPad as this is my very first interaction with any of Apple technology, so I never really designed this application properly while developing, I want to mould this code into, what apple advocates, Model-View-Controller style. I read a lot about it but still confused.
This is what I have:

  1. ViewController class created by
    default
  2. Some methods to control the
    animation
  3. Textiles for some data and some
    methods to access them
  4. Methods to calculate payouts and
    winning amounts

So what should I exactly do now to convert it into MVC, how should my approach be?
Also tell me any good books or online documentation for the same

Thanks in advance!!

  • 1 1 Answer
  • 1 View
  • 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-23T02:43:18+00:00Added an answer on May 23, 2026 at 2:43 am

    The model should represent the state of your game at any time, but not in a visual sense. Think of it as the game logic. So it would have current score, current state of slot reels etc. The model would also be responsible for “spinning the reels”

    The view is a visual representation of that model, you can render that information in any way you like, 3D, 2D etc and it makes no difference, the model is the same (this is the real benefit to MVC).

    Your controller (commonly a Viewcontroller in iOS) mediates between the model and controller – it should take input from the user and respond to changes in the model, updating both the model and view as required.

    The reason for the three way split is that you can change just one of the MVC elements and have the app continue to work. You could change the model to spin the reels in a better way (more random) you could change the view from 2D to 3D (or iPhone to Mac) and you could change the event handling in the controller (e.g. add shake to trigger a spin). All independently.

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

Sidebar

Related Questions

have small problem, and would very much appreciate help :) I should convert byte
I have a small program to show devices and capture any packets, with GUI.I
I have small query today I happen to see when I typed a website
I have small question by entity framework 4.1. There is interface of image DTO:
I have small script in bash, which is generating graphs via gnuplot. Everything works
I have small problem with Spring MVC. Basically what I'm trying to do is
I have small question. When I started to programm my application, I grouped types
I have small database of business and their addresses. Using the Google Geocode API
I have small test app: Socket socket = new Socket(jeck.ru, 80); PrintWriter pw =
I have small web app that generate PDF files as a report. I'm trying

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.