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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:58:32+00:00 2026-05-31T05:58:32+00:00

i have created one table view in which i have provided searching & deleting

  • 0

i have created one table view in which i have provided searching & deleting facility. My problem is that when i am not in searching mode the data is going to be deleted properly & shows the table properly after deleting data. but my problem is that i have two NSMutableArrays one is original and second one is searched NSMutableArray so when i delete data from searched Array at that time i want to delete data from original array also.

NSString *str = [searchedName objectAtIndex:indexPath.row];
NSLog(@"str:=%@",str);

[searchedName removeObjectAtIndex:indexPath.row];

[arrName removeObjectIdenticalTo:str];

so here my point is that i can’t delete original data with use of removeObjectAtIndex:index.path because the searched array count will be different from original array count so from original array it will delete another value witch i have not deleted from searched value.

did you get my point? please mention me if you don’t get my point.

how can i implement like this? please guide me.

  • 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-31T05:58:34+00:00Added an answer on May 31, 2026 at 5:58 am

    You can first search the index from the original array

    int index = [arrName indexOfObject:str];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am working on one application in which i have created one table view
I have a view controller with table view that contains 8 cells(sections).I have created
I have created one table using the below command: create table Table1( Id int
Ok, I have one JavaScript that creates rows in a table like this: function
I have created one aspx Page from that i need to access the property
I have created one application in flex that is accessing the Java webservice using
I have created a new method in one of the project's controllers that it
I have one specific view created in my DB(joins about 5-6 tables with a
I have 2 procedures. One that builds a temp table and another (or several
I have created two options for a query used in a view which return

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.