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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:55:09+00:00 2026-05-25T01:55:09+00:00

This is getting silly and driving me crackers. I have a small test view

  • 0

This is getting silly and driving me crackers.

I have a small test view controller where I loop through ten questions. The answer get checked and the score goes up or stays the same. This happens in a -(void) checkAnswer. No problem!

Now comes my headache.
I have a NSMutableArray declared and @property in .h
It’s @synthesize in .m

But when I try to add “right’ or “wrong” to it in checkAnswer, nothing get added.

 [scoreArray addObject:@"wrong"];
 NSLog(@"scoreArray checkAnswer: %@",scoreArray);

There is no warnings or errors, just getting (null) from the NSLog.

Tried with no joy.

  [self.scoreArray addObject:@"wrong"];

Anyone out there that could help me? I’m sure it’s something simple I can’t see.
Thanks

  • 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-25T01:55:10+00:00Added an answer on May 25, 2026 at 1:55 am

    Have you initialized array correctly?

    scoreArray = [[NSMutableArray alloc] init];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this is a silly questions but I don't understand, why rails isn't evaluating my
This is probably a silly question but I can't seem to find an answer.
I feel a bit silly asking this as the answer is bound to be
This is a very small question, and probably something really silly! But why am
This might be a silly question but whats the best practise for getting a
this might be a silly question but I am not getting it. I tried
This might be a silly question, but as I can't find an answer, I
I'm still getting comfortable with WPF, so this might be a silly question. I'm
Anyone getting this error when using the new free chart controls MS bought from
I´m getting this error while trying to commit to a svn repository: svn: MKACTIVITY

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.