-(id)initWithCoder:(NSCoder*)aDecoder{
if((self = [super initWithCoder:aDecoder])){
...
}
return self;
}
这段代码的作用是什么?与下面这段代码的区别是什么?谢谢
-(id)initWithCoder:(NSCoder*)aDecoder{
if((self = [super init])){
...
}
return self;
}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
[super init]
和[super initWithCoder:]
分明就是两个方法么