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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:30:52+00:00 2026-06-01T01:30:52+00:00

i am having a array called temparray and have 2 seperate arrays .i have

  • 0

i am having a array called temparray and have 2 seperate arrays .i have two buttons ,when i tap the first button it lodes the first array to the temp array,and when i tap the second button it lods the second array to the temparray.
my code is

-(IBAction)_clickbtnlanselmlayalm:(id)sender
{
    [tempArray removeAllObjects];
    [tempArray addObjectsFromArray:delegate.allSelectedVerseMalayalam];    
    [self.tab reloadData];
}
-(IBAction)_clickbtnlanselhindi:(id)sender
{
    [tempArray removeAllObjects];
    [tempArray addObjectsFromArray:delegate.allSelectedVerseHindi];
    [self.tab reloadData];
}

allSelectedVerseMalayalam and allSelectedVerseHindi are two arrays which lodes from application delegate.after tap the first button it losds the first array and show it in tableview,but when i tap the scrond button i receve a warning in [tempArray removeAllObjects]; programe receiving signal sigrabat.and it crashes the app.then i put [tempArray removeAllObjects]; again it crashes.
whats the problem in my code.please help me to find the eroor.
thanks in advance.

  • 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-01T01:30:54+00:00Added an answer on June 1, 2026 at 1:30 am

    Are you sure your tempArray is properly initialized and is in fact a NSMutableArray (NSArrays are immutable and don’t support addObject:/removeAllObjects/etc)?

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

Sidebar

Related Questions

I have two cell arrays one called info{} and the other is called data{}
I'm having hard time wrapping my head around this. I have an array called
i have a multi dimension array with sub array having repeated values of '
I'm really having trouble with Allocatable array. I have to copy all information from
I have been having this issue in iterating through an array of keys and
I am trying to loop over an array called meta. I am having issues
Im having a weird issue with json arrays. Inside each array, there is another
I have an array that posts a line to my div called quotes after
I have a struct called Ambigous, and inside the struct I have an array
I have a tree controller bound to an array, called content. content is an

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.