//创建,并且初始化尺寸
let imageview = UIImageView(frame: CGRectMake(20, 5, 90, 90))
imageview.image = UIImage(named: "icon1")
imageview.userInteractionEnabled = true //是否接受用户交互
let Tap = UITapGestureRecognizer(target: self, action: #selector(SYView.btn)) //创建点击手势,调用方法