How to register, so that the button is pressed exactly in the form of the picture? I now have if you press the button in the vicinity, she also reacts
Knopka = UIButton(frame: CGRect(origin: CGPoint(x: (self.view?.frame.size.width)! / 2 - 95, y: (self.view?.frame.size.height)! / 2 - 170), size: CGSize(width: 185, height: 195))) Knopka.setImage(UIImage(named: "Knopka1"), forState: .Normal) Knopka.addTarget(self, action: Selector("perexod"), forControlEvents: UIControlEvents.TouchUpInside) self.view?.addSubview(Knopka) 
