gpt4 book ai didi

objective-c - 为什么 Objective-C 允许在方法定义的末尾使用分号?

转载 作者:太空狗 更新时间:2023-10-30 03:49:39 26 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Semicolon after the method name in Objective-C implementation file

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}

为什么我添加;在函数末尾也正确吗?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com