Iphone 一个文件中有两个接口声明
这是我的.h文件:Iphone 一个文件中有两个接口声明,iphone,xcode,cocoa-touch,linker-errors,Iphone,Xcode,Cocoa Touch,Linker Errors,这是我的.h文件: #import <Foundation/Foundation.h> @interface ShareOfflineItem : NSObject @property (strong, nonatomic) id shareService; @property (strong, nonatomic) NSString *title, *url; @end @interface ShareOfflineQueue : NSObject +(ShareOffline
#import <Foundation/Foundation.h>
@interface ShareOfflineItem : NSObject
@property (strong, nonatomic) id shareService;
@property (strong, nonatomic) NSString *title, *url;
@end
@interface ShareOfflineQueue : NSObject
+(ShareOfflineQueue *)sharedQueue;
-(void)addItemToQueue:(ShareOfflineItem *) item;
-(void)flushQueue;
-(void)saveQueueToDisk;
@end
有什么想法吗?使用
@class ShareOfflineItem;
@class ShareOfflineQueue;
进口后。这可能会有所帮助。为什么不将它们放在一个定义下?
@class ShareOfflineItem;
@class ShareOfflineQueue;