虚位以待(AD)
虚位以待(AD)
首页 > 软件编程 > IOS编程/Objective-C > error : typedef redefinition with different types (' ---ConnectionType-

error : typedef redefinition with different types (' ---ConnectionType-
类别:IOS编程/Objective-C   作者:码皇   来源:互联网   点击:

import <Foundation Foundation h> import "Blog h" Typestypedef enum { ConnectionTypeAsynchronously, ConnectionTypeSynchronously} ConnectionType;@class Parser;@protocol ParserDelegate

#import <Foundation/Foundation.h>

#import "Blog.h"

 


// Types

typedef enum {

    ConnectionTypeAsynchronously,

    ConnectionTypeSynchronously

} ConnectionType;

 


@class Parser;

 


@protocol ParserDelegate <NSObject>

end

 


------------------------------------------------------------------------------------------------------------------

 

#import <Foundation/Foundation.h>

#import "ASIHTTPRequest.h"

 


typedef enum {

    DownloaderTypeUnknown,

    DownloaderTypeData,

    DownloaderTypeImage,

    DownloaderTypeAudio,

    DownloaderTypeVideo,

    DownloaderTypeFile

} DownloaderType;

 

 

 

// Types

typedef enum {

    ConnectionTypeAsynchronously,

    ConnectionTypeSynchronously

} ConnectionType;

 


@class LRDHttpRequest;

 


@protocol LRDHttpRequestDelegate <NSObject>

end

 

 

 

 


error :   typedef redefinition with different types (' ---ConnectionType----- ' vs '-----ConnectionType--------') 出错


冲突 多余

删除其中一项即可


 

相关热词搜索: error typedef redefinition