我注意到两者
- (void)encodeWithCoder:(NSCoder *)aCoder;
{
}
和
- (void)encodeWithCoder:(NSCoder *)aCoder
{
}
作品。
使用 ; 不过有点尴尬。为什么有;作品超出了我的范围。不能在 C++ 中工作
事情something;
应该是等价的,something{};
因此something ;{}
应该是等价的,something {};{}
这是错误的。
例如 if(true) a=b; 与 if(true){a=b}; 相同;