/*
@protocol ClasConfig
@end
*/
//class A
@interface ClassA : NSObject
@property (nonatomic) *companyA;
@property (nonatomic) NSArray *companyLists;
- (NSMutableArray*)getCompanyLists:(CompanyListModel *)productionListModel;
@end
//class config
@interface ClasConfig : NSObject
@property (nonatomic) NSString *Number;
@property (nonatomic) NSString *totalNumberOfCompany;
@end
@implementation ClassA
- (NSMutableArray*)getCompanyLists:(CompanyListModel *)productionListModel
{
ClasConfig *config = [[ClasConfig alloc] init]; **//Gives me linker error**
}
@end
ClasConfig * config = [[ClasConfig alloc] init]; //给我链接器错误 虽然我尝试过导入协议以供参考。
答案 0 :(得分:0)
为了实现ClassConfig的类。
@implementation ClassConfig
@end
@implementation ClassA
- (NSMutableArray*)getCompanyLists:(CompanyListModel *)productionListModel
{
ClasConfig *config = [[ClasConfig alloc] init]; **//Gives me linker error**
}
@end