iphone - tablerow delete but still showon in table view -


my data show on table whn select data delet delted database not table , go other view , again come delete table view delete data not show again using code ... - (void)deleterowsatindexpaths:(nsarray *)indexpath withrowanimation:(uitableviewrowanimation)animation {

nslog(@"hello"); 

}

-(void) tableview:(uitableview *)tableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath:(nsindexpath *)indexpath

{ // int row = [indexpath row]; [self.table beginupdates]; if (editingstyle == uitableviewcelleditingstyledelete) {
hadits *delhadit = [self.allbookmarks objectatindex:indexpath.row]; dbaccess *dbmethods = [[dbaccess alloc] init]; nsinteger delhaditid = delhadit.haditid; [dbmethods deletebookmark:delhaditid]; [dbmethods release]; }

[self deleterowsatindexpaths:[nsarray arraywithobject:indexpath]                       withrowanimation:uitableviewrowanimationfade]; [self.table endupdates];  nslog(@"hello"); [self.table reloaddata]; 

}

...help needed.. regards haseeb

in view appear prepare array having record , in commitediting add 1 line.

[self viewwillapear:yes]; 

and in viewwillappear add line

[yourtable reloaddata]; 

after fetching data db.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -