ios - Cannot delete files from Dropbox(from iPhone app) -
i'm trying delete files dropbox. have implemented swipe delete behaviour. 'swipe-delete' deletes files tableview only. next time upload, can see 'deleted' files , when check dropbox account on pc, files never deleted. they're there after file disappears tableview.
- (uitableviewcelleditingstyle)tableview:(uitableview *)tableview editingstyleforrowatindexpath:(nsindexpath *)indexpath { return uitableviewcelleditingstyledelete; } - (void)tableview:(uitableview *)atableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath :(nsindexpath *)indexpath { [self.itemarray removeobjectatindex:indexpath.row]; [atableview deleterowsatindexpaths:[nsarray arraywithobject:indexpath] withrowanimation:yes]; [self.tableview reloadsections:[nsindexset indexsetwithindex:0]withrowanimation:uitableviewrowanimationfade]; }
you're code shows you're deleting entry table view. there no code deletes file system, eg. using
[[nsfilemanager defaultmanager] removeitematpath:filepath error:&error];
Comments
Post a Comment