iphonewax专题

iphonewax下用lua代码addTarget_action_forControlEvents给UIButton添加事件程序crash解决办法

创建button代码的地方要初始化button的类型 如下: local play = UIButton:buttonWithType(UIButtonTypeCustom)play:setFrame(CGRect(p[1], p[2], size.width, size.height))play:setBackgroundImage_forState(imgplay, 0)play