ios - custom delete image within UITabelViewCell only show half of itself -


i want custom delete button of uitableviewcell these codes:

let deleteaciont = uitableviewrowaction(style: uitableviewrowactionstyle.normal, title: nil, handler: {action, indexpath in         thing     });     deleteaciont.backgroundcolor = uicolor(patternimage: uiimage(named: "delete")!) 

the height of uitableviewcell 70 this:

override func tableview(tableview: uitableview, heightforrowatindexpath indexpath: nsindexpath) -> cgfloat {     return 70 } 

and images these size: delete.png:70*70\delete@2x.png:140*140\delete@3x.png:210*210 delete image

but when swipe left, image show half: enter image description here

i have been confusing long time , help

the length of tableviewrowaction title's length

let deleteaciont = uitableviewrowaction(style: uitableviewrowactionstyle.normal, title: " type more space here ", handler: {action, indexpath in thing });


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -