Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UIView 的文档列出了两个初始化器:
init(frame: CGRect) init?(coder aDecoder: NSCoder)
根据我的理解,编译器应该强制我使用这两者之一。那么,什么给了?UIView 是“特殊的”吗?