iphone - Left swipe for delete and edit,delete -


i not able find way around this. possible have delete option using left swipe , using edit , delete.

i have edit button on left of navigation bar.

self.navigationitem.leftbarbuttonitem = self.editbuttonitem; 

and commiteditingstyle method below

- (void)tableview:(uitableview *)tableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath:(nsindexpath *)indexpath {      if (editingstyle == uitableviewcelleditingstyledelete) { //delete code here     }        else if (editingstyle == uitableviewcelleditingstyleinsert) {     // create new instance of appropriate class, insert array, , add new row table view.     }    

}

after using this, left swipe not being detected @ all. way delete seems going edit mode , deleting there. appreciated.

i newbie please go easy me :)

you mean swiping on cell need delete option.

if can try code:

- (uitableviewcelleditingstyle)tableview:(uitableview *)atableview editingstyleforrowatindexpath:(nsindexpath *)indexpath {      return uitableviewcelleditingstyledelete;  }  - (void)tableview:(uitableview *)tableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath:(nsindexpath *)indexpath {      //perform delete operation  } 

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -