<分区>
<分区>
在 C 语言中我会这样写:
typedef struct old new;
struct old
{
int x = 0;
int y = 0;
};
我找不到 swift 中的等价物。
请帮帮我
最佳答案
在 swift 中它看起来像这样:
typealias new = old
struct old {
let x = 0
let y = 0
}
关于ios - swift 相当于 typedef,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59644447/