-
Closures
为UIKit和Foundation提供闭包表达式,如
button.onTap {
// UIButton tapped code
}
view.addPanGesture() { pan in
// UIPanGesutreRecognizer recognized code
}
button.onTap {
// UIButton tapped code
}
view.addPanGesture() { pan in
// UIPanGesutreRecognizer recognized code
}
本文标题:Swift工具包
本文链接:https://www.haomeiwen.com/subject/nowraktx.html
网友评论