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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:05:04+00:00 2026-06-16T19:05:04+00:00

I am new IOS, i will like to know how save temporally NSMutableArray count

  • 0

I am new IOS, i will like to know how save temporally NSMutableArray count sow i can compare with the new count?

i add badge icon on the app with the count and remove when i click to the new row, but when i refresh and add new row the add all the badge again.

This is the code:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{

[[UIApplication sharedApplication] setApplicationIconBadgeNumber:self.parseResults.count];

return self.parseResults.count;

}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{


NSInteger badge = [[UIApplication sharedApplication] applicationIconBadgeNumber];


if (badge > 0) {
    [[UIApplication sharedApplication] setApplicationIconBadgeNumber:(badge - 1)];
}

}

Thank

  • 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-16T19:05:06+00:00Added an answer on June 16, 2026 at 7:05 pm
    [[NSUserDefaults standardUserDefaults] setInteger:nombre forKey:@"MaxCount"];
    [[NSUserDefaults standardUserDefaults] synchronize]
    

    // Above code is for saving…

    and for retriving back this max count you can write below code where ever you want my friend

     NSInteger getMax1=[[NSUserDefaults standardUserDefaults] integerForKey:@"MaxCount"];//This is for getting stored max count...
    

    let me know it is working or not…

    Happy Coding…!!!

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

Sidebar

Related Questions

I am new iOS development but I know android at eclipse. For example I
I'm new ios developer, I want to compare and change attributes Array1 = (object1,object2,
I'm new to IOS programming, I don't know how to judge the swinging direction
I'm still very new to ShiVa3d and fairly new to iOS. I'd like to
I am still new to iOS development and I wanted to know how to
So I'm new to iOS development and am doing all I can to learn
I'm a new iOS programming and I'm developing a simple iPhone game that needs
I'm using the new iOS 5 core data concurrency options. I have two threads:
I'm quite new here. I have a problem with the new iOS 5.1 slide-in
Kinda new to iOS, Im also studying Android. kinda confuse on arrays. How to

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.