//让按钮加入图片并且设置圆角
button.layer.cornerRadius = Int

button.layer.masksToBounds = true

button.setImage(UIImage(named: String), forState: .Normal