let tapStepGestureRecognizer = UITapGestureRecognizer(target: self, action: Selector("enterStepDetail"))
stepLogo.addGestureRecognizer(tapStepGestureRecognizer)
func enterStepDetail(){
print("step detail ok")
}
//我现在的代码,但是下面的方法不执行。
let tapStepGestureRecognizer = UITapGestureRecognizer(target: self, action: Selector("enterStepDetail"))
stepLogo.addGestureRecognizer(tapStepGestureRecognizer)
func enterStepDetail(){
print("step detail ok")
}
//我现在的代码,但是下面的方法不执行。
2 回答1k 阅读
1 回答1.1k 阅读✓ 已解决
1 回答2.7k 阅读
1 回答1.5k 阅读
1 回答1.4k 阅读
1.7k 阅读
1 回答1.1k 阅读