ViewProtocol
@available(*, deprecated, renamed: "SetupViewProtocol", message: "Use SetupViewProtocol instead and related methods will be invoked automatically")
public protocol ViewProtocol
已废弃,视图规范协议,需手工调用
-
初始化完成,一般init(frame:)调用,默认空实现
Declaration
Swift
func didInitialize()
-
初始化子视图,一般init(frame:)调用,默认空实现
Declaration
Swift
func setupSubviews()
-
初始化布局,一般init(frame:)调用,默认空实现
Declaration
Swift
func setupLayout()
-
didInitialize()
Default implementationDefault Implementation
初始化完成,一般init(frame:)调用,默认空实现
Declaration
Swift
public func didInitialize()
-
setupSubviews()
Default implementationDefault Implementation
初始化子视图,一般init(frame:)调用,默认空实现
Declaration
Swift
public func setupSubviews()
-
setupLayout()
Default implementationDefault Implementation
初始化布局,一般init(frame:)调用,默认空实现
Declaration
Swift
public func setupLayout()