swift 拖动view, 自动停靠屏幕边缘
摘要:
// 创建view 添加pan 手势 点手势 let drapBtn = UIView(frame:CGRect(x: 100, y: 100, width: 100, height: 100)) drapBtn.backgroundColor = UIColor.orange self.view. 阅读全文
posted @ 2017-11-14 15:57 顾玉玺 阅读(1465) 评论(0) 推荐(0)