提前定义,不然编译器找不到

来源:互联网 发布:网络道德规范的主体是 编辑:程序博客网 时间:2024/06/02 07:51

//

//  Prefix header

//

//  The contents of this file are implicitly included at the beginning of every source file.

//


#import <Availability.h>


#ifndef __IPHONE_3_0

#warning "This project uses features only available in iOS SDK 3.0 and later."

#endif


//生成静态属性

#undef MB_GET_PROPERTY

#define MB_GET_PROPERTY( __name) \

@property (nonatomic, strong, readonly) NSString* __name; \

+ (NSString *)__name;


#undef MB_SET_PROPERTY

#define MB_SET_PROPERTY( __name, __value) \

@dynamic __name; \

+ (NSString *)__name \

{ \

return __value; \

}


#ifdef __OBJC__

    #import <UIKit/UIKit.h>

    #import <Foundation/Foundation.h>

#import "LLBTConstant.h"

#import "LLBTGlobalCore.h"

#import "LLBTAdditions.h"

#import "LLBTFileManager.h"

#import "LLBTButton.h"

#import "LLBTShareDic.h"

#import "LLBTLoginViewController.h"

#import "LLBTRequest.h"

#import "LLBTMethond.h"


#endif




#import "LLBTMethond.h"  //这个类里面 封装的是接口的名称,里面会用到MB_GET_PROPERTY  MB_SET_PROPERTY定义的东西,倘若写反了,把这个写在下面了,编译器就会找不到。。。。。所以就会报错,    总之,后面需要用到的 都要提前去定义。。。。。






0 0