ImagePickerTitleView

@MainActor
open class ImagePickerTitleView : UIControl, TitleViewProtocol

Undocumented

  • 事件代理

    Declaration

    Swift

    @MainActor
    open weak var delegate: ImagePickerTitleViewDelegate?
  • 标题栏是否是激活状态,主要针对accessoryImage生效

    Declaration

    Swift

    @MainActor
    open var isActive: Bool { get set }
  • 标题栏最大显示宽度,默认不限制

    Declaration

    Swift

    @MainActor
    open var maximumWidth: CGFloat { get set }
  • 标题文字

    Declaration

    Swift

    @MainActor
    open var title: String? { get set }
  • 是否适应tintColor变化,影响titleLabel,默认YES

    Declaration

    Swift

    @MainActor
    open var adjustsTintColor: Bool
  • 水平布局下的标题字体,默认为 加粗17

    Declaration

    Swift

    @MainActor
    open var horizontalTitleFont: UIFont? { get set }
  • 标题的上下左右间距,标题不显示时不参与计算大小,默认为 UIEdgeInsets.zero

    Declaration

    Swift

    @MainActor
    open var titleEdgeInsets: UIEdgeInsets { get set }
  • 自定义accessoryView,设置后accessoryImage无效,默认nil

    Declaration

    Swift

    @MainActor
    open var accessoryView: UIView? { get set }
  • 自定义accessoryImage,accessoryView为空时才生效,默认nil

    Declaration

    Swift

    @MainActor
    open var accessoryImage: UIImage? { get set }
  • 指定accessoryView偏移位置,默认(3, 0)

    Declaration

    Swift

    @MainActor
    open var accessoryViewOffset: CGPoint { get set }
  • 值为YES则title居中,accessoryView放在title的左边或右边;如果为NO,accessoryView和title整体居中;默认NO

    Declaration

    Swift

    @MainActor
    open var showsAccessoryPlaceholder: Bool { get set }
  • 标题标签

    Declaration

    Swift

    @MainActor
    open lazy var titleLabel: UILabel { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override public init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    @MainActor
    public required init?(coder: NSCoder)
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var contentHorizontalAlignment: UIControl.ContentHorizontalAlignment { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var isHighlighted: Bool { get set }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func setNeedsLayout()
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func sizeThatFits(_ size: CGSize) -> CGSize
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open var intrinsicContentSize: CGSize { get }
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func tintColorDidChange()
  • Undocumented

    Declaration

    Swift

    @MainActor
    override open func layoutSubviews()
  • 动画方式设置标题栏是否激活,主要针对accessoryImage生效

    Declaration

    Swift

    @MainActor
    open func setActive(_ active: Bool, animated: Bool)