How to reload Data of TableView when Editing ends with animation

I'm using a TableView to show, edit and write Data to a file...when the editing modes end I write them to the file and afterwards I want to clear the inputFields of the tableCells.

I'm doing this with:

- (void) setEditing:(BOOL)editing animated:(BOOL)animated {
    [super setEditing:editing animated:animated];

    if (editing == NO) {
        //Write to file

        //Clear Data

        [self.tableView reloadData];

but when i reload the Data the animation isn't shown.

What way can i reload the Data and still get an animation?


Why not just clear the input fields in the existing cells instead of calling reloadData? Iterate through all of the UITableViewCells in self.visibleCells and clear the input field in each of them in turn - that should leave the animation uninterrupted.

Need Your Help

JPA get id of entity object

java hibernate jpa

Does anyone know how I can do the equivalent of this in hibernate:

itext pdf decryption using user password

java pdf encryption itext

In itext, can we decrypt a pdf file using the user password that was used to encrypt the file?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.