ios - UITableViewEditingStyle Problems -


i'm setting cells have uitablevieweditingstyledelete after user has clicked on edit button.

inside of

- (uitableviewcelleditingstyle)tableview:(uitableview *)tablevieweditingstyleforrowatindexpath:(nsindexpath *)indexpath 

i do

return uitableviewcelleditingstyledelete; 

inside of

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

i remove cell , do

[_tableview reloaddata]; 

however, whenever click red minus button shows up, delete button appears second, disappears. if try click minus sign again, tend see error "attempting set swipe delete cell when have one....that doesn't seem good"

does know solution this? i've tried solutions i've seen elsewhere nothing seems work.

did put?:

    - (bool)tableview:(uitableview *)tableview caneditrowatindexpath:(nsindexpath *)indexpath {     return yes; } 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -