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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:47:42+00:00 2026-05-26T22:47:42+00:00

When my microsoftSQL query is successful in deleting a row from the DB I

  • 0

When my microsoftSQL query is successful in deleting a row from the DB I also delete said row from my “local data”

This works as expected unless you are “searching”

When you have the search results displayed and you swipe to delete the row doesn’t actually delete with an animation. If I retype my search query it disappears as suspected.

So… is there a way to animate the deletion of a row in a uisearchdisplaycontroller or is there a way to reload the search results table? Or should I just disable being able to delete in searching?

            [itemAutoIDRows removeObjectAtIndex:currentRow];
            [itemIDRows removeObjectAtIndex:currentRow];
            [itemNameRows removeObjectAtIndex:currentRow];
            [qtyOrderedRows removeObjectAtIndex:currentRow];
            [qtyReceivedRows removeObjectAtIndex:currentRow];



            NSIndexPath *indexPath = [NSIndexPath indexPathForRow:currentRow inSection:0];
            NSArray *indexPathArray = [[NSArray alloc] initWithObjects:indexPath, nil];
            [self.POTableView deleteRowsAtIndexPaths:indexPathArray withRowAnimation:UITableViewRowAnimationFade];
            break;
            [indexPathArray release];

This code works fine when using just the normal tableview but doesn’t animate or refresh the search results table view. Any ideas?

  • 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-26T22:47:43+00:00Added an answer on May 26, 2026 at 10:47 pm

    The searchResultsTableView works like any other table view. after you delete the item from it’s data source you send deleteRowsAtIndexPaths:withRowAnimation: to it and it should work fine. Your code above is only modifying self.POTableView. The same rules apply as to any tableView, if you modify the data source and want to incrementally update the table view make sure you keep the changes consistent between the data source and the table structure.

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

Sidebar

Related Questions

I have a Microsoft SQL Server 2008 query that returns data from three tables
In on-premises Microsoft SQL Server, when I issue this query: SELECT * FROM sys.dm_exec_sessions
I am using Microsoft Sql Server 2008. with this below query certain rows are
Here is the query I am trying to run: SELECT TOP 5 PageComment.ID FROM
i'm using isql sdk to make Microsoft Sql 2008 query through iphone, everything works
So I have this query working (where signal_data is a column) in Sybase but
I have a sample query as shown below: SELECT * FROM [#temp1] UNION SELECT
Greetings, Here is my problem. I need to get data from multiple rows and
I am working with Microsoft SQL Server 2005, and when I execute this query:
I've got a 140mb SQL query to import data to a new database. I

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.