5
可能重複:
Semicolon after the method name in Objective-C implementation fileObjective-C爲什麼在方法定義的最後允許分號?
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
爲什麼我添加;在函數的結尾也是正確的?
謝謝!看來你知道很多NEXTStep的歷史,太棒了! – ZYiOS