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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:12:14+00:00 2026-05-28T18:12:14+00:00

Preface: I’m very new to objective-c and I am doing simple exercises to learn

  • 0

Preface: I’m very new to objective-c and I am doing simple exercises to learn in order to progress as a developer.

  1. Let’s say we’re playing a memory game. You start with two images: a
    cow and a pig.
  2. A word is shown (cow or pig) and you click a corresponding button.

My problem: How do I progress the user to four cards the six and so-on? Quasi-levels of a game, I guess…or more simply.

Second question: If it were simply one static set of cards (four), how do I allow time between the success message and a reset of the board?

I’m asking more hypothetically, but exact answers would be helpful too so I can understand more about syntax.

If this is confusing, I’m sorry. 🙂 Any information is welcomed!

  • 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-28T18:12:15+00:00Added an answer on May 28, 2026 at 6:12 pm

    How do I progress the user to four cards the six and so-on?

    “Sequence” == “State”

    State is usually maintained with instance variables… so, how about a numberOfCards variable? And maybe a numberOfGamesPlayed variable as a factor in deciding when to increase the number of cards?

    If it were simply one static set of cards (four), how do I allow time between the success message and a reset of the board?

    Tons of options… two decent ones are:

    • NSTimer
    • performSelector:withObject:afterDelay:
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Preface Let me start off by saying that I'm a relatively new programmer and
To preface: I am very new to C, so I am probably missing something
First let me preface this question by saying that I'm fairly new to Javascript.
**Preface I'm very new to generics. I have a class I created called Geno.
To preface, I'm very new to Obj-C but I do have some OOP experience
Let me preface this with saying that I am new to Ruby. I was
Preface : I am new to the iPhone SDK, Obj-C, Interface Builder and Cocoa.
Preface: I am sure this is incredibly simple, but I have searched this site
To preface I am new to web development. I am looking at creating a
Let me preface this question by saying I use TextMate on Mac OSX for

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.