小编Ter*_*ce 的帖子

向UIStackView添加点按手势

我试图在collectionView单元格中添加一个UITapGesture,UIStackView但每次我的应用程序崩溃.(所有IBOutlets都是连接的)这里有什么我在这里做错了吗?

 let fGuesture = UITapGestureRecognizer(target: self, action: #selector(self.showF(_:)))
 cell.fstackView.addGestureRecognizer(fGuesture)

 func showF(sender: AnyObject){
        print(111)
    }
Run Code Online (Sandbox Code Playgroud)

ios swift uistackview

13
推荐指数
1
解决办法
9371
查看次数

标签 统计

ios ×1

swift ×1

uistackview ×1