例子:
@class MyRootObject;
@interface MyObject : MyRootObject
@end
获取表单 XCode:
Class MyObject defined without specifying a base class.
MyRootObject 类是:
@interface MyRootObject : NSObject
- (id)init;
@end
@implementation MyRootObject
- (id)init
{
self = [super init];
if(self){
// some code here
}
return self;
}
@end