UIView 响应单击事件.

响应单击事件:

blankView.userInteractionEnabled = true
let blankTap = UITapGestureRecognizer(target: self, action: "hiddenDetail")
blankView.addGestureRecognizer(blankTap)

 

posted @ 2015-02-19 20:34  ericjuns  阅读(289)  评论(0编辑  收藏  举报