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
but when swipe left, image show half:
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
Post a Comment