typedef struct Person {
__unsafe_unretained NSString *name;
NSInteger age;
}Person;
struct Student {
__unsafe_unretained NSString *name;
NSInteger age;
};
typedef struct Student Student;
使用 :
Person person = {@"qwe",20};
Student student = {@"qwe",20};