【发布时间】:2014-06-03 09:33:21
【问题描述】:
在 Objective-C 中,初始化器中有这种标准模式来调用超类的指定初始化器。
例如:
- (instancetype)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
// Initialization code
}
return self;
}
在 Swift 类中进行相同初始化的标准方法是什么?
【问题讨论】:
标签: objective-c uiview swift