class Test: UIViewController{
func abc() {
print("This is ABC")
}
}
extension Test {
func def(){
print("This is DEF")
}
}
我的问题是
- 声明的两种方法有什么区别?
- 方法def是静态方法吗?
- 扩展类以使用协议影响内存管理?
class Test: UIViewController{
func abc() {
print("This is ABC")
}
}
extension Test {
func def(){
print("This is DEF")
}
}
我的问题是