У меня есть код, в котором у меня есть 3 кнопки, и я бы хотел узнать родительское представление этих кнопок при нажатии
@IBAction func resizeButtonClicked(sender: UIButton) {
if(sender.isEqual(resizeButton)) {
//This is to convert to small square
} else if(sender.isEqual(maximizeButton)) {
//This is to convert to maximized view
} else if(sender.isEqual(closeButton)) {
//This is to close the view completely
}
}
Теперь я могу идентифицировать кнопку отправителя, но как определить, как эта кнопка сидит?
Спасибо
Нихилу