UIBarButtonItem
public extension UIBarButtonItem
-
图片初始化边界构造器
Declaration
Swift
convenience init(image: UIImage?, style: UIBarButtonItem.Style, handler: @escaping NormalClosure)Parameters
image图片
style风格
handler点击回调
-
Declaration
Swift
@objc func imageActionClosure() -
文字初始化便捷构造器
Declaration
Swift
convenience init(title: String?, style: UIBarButtonItem.Style, handler: @escaping NormalClosure)Parameters
title文字
style风格
handler点击回调
-
Declaration
Swift
@objc func titleActionClosure()
View on GitHub
Install in Dash
UIBarButtonItem Extension Reference