0

I have found answer to this question in below link.But is in objective C.Please help to get it's Swift representation.

Changing the location of the minus sign in UITableView in Edit mode

Vork
  • 746
  • 2
  • 12
  • 34

1 Answers1

0

Working example in Swift 3.0

override func layoutSubviews() {
    super.layoutSubviews()
    for subview in self.subviews {
        if subview.isMember(of: NSClassFromString("UITableViewCellEditControl")!) {
            var newFrame: CGRect = subview.frame
            newFrame.origin.x = 280
            subview.frame = newFrame
        }
    }
}

Edit: Result

teeying
  • 33
  • 1
  • 9