Add tap gesture to UIStackView

后端 未结 3 2002
轻奢々
轻奢々 2021-02-18 21:49

Im attempting to add a UITapGesture to a UIStackView within a collectionView cell but each time I do my app crashes. (All IBOutlets are co

3条回答
  •  温柔的废话
    2021-02-18 22:29

    Is the stackview enabled for touch ? Try to set Userinteraction Parameter

    cell.fstackView.isUserInteractionEnabled = true 
    

提交回复
热议问题