在UITableViewCell中实现
//修改编辑的图片
override func layoutSubviews() {
super.layoutSubviews()
for control in self.subviews{
if control.isMemberOfClass(NSClassFromString("UITableViewCellEditControl")!){
for v in control.subviews{
if(v.isKindOfClass(UIImageView)){
let img = v as! UIImageView
if(self.selected){
img.image = UIImage(named: "fszc_mainmap_dianzhuang.png")
}else{
img.image = UIImage(named: "fszc_daohangimage.png")
}
}
}
}
}
}