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

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -