Relative Content

Tag Archive for swift

App crashed after using stack view subviews

I have a UIButton with an action. If I click the button, I see a stack view with two views. And if I click on some view on stack view, I perform a new action of some kind. But for views in stack view, I don’t use an action button. I’m using TouchesBegan to detect a touch and perform an action. I use next code:

App crashed after using stack view subviews

I have a UIButton with an action. If I click the button, I see a stack view with two views. And if I click on some view on stack view, I perform a new action of some kind. But for views in stack view, I don’t use an action button. I’m using TouchesBegan to detect a touch and perform an action. I use next code:

App crashed after using stack view subviews

I have a UIButton with an action. If I click the button, I see a stack view with two views. And if I click on some view on stack view, I perform a new action of some kind. But for views in stack view, I don’t use an action button. I’m using TouchesBegan to detect a touch and perform an action. I use next code: