FBSDKGraphRequestDataAttachment
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

A container class for data attachments so that additional metadata can be provided about the attachment.

Superclass:NSObject
Declared in:FBSDKGraphRequestDataAttachment.h
속성
contentType

The content type for the attachment.

@property (nonatomic, copy, readonly) NSString *contentType;
data

The attachment data.

@property (nonatomic, strong, readonly) NSData *data;
filename

The filename for the attachment.

@property (nonatomic, copy, readonly) NSString *filename;
인스턴스 메서드
initWithData:filename:contentType:

Initializes the receiver with the attachment data and metadata.

매개변수설명
data

The attachment data (retained, not copied)

filename

The filename for the attachment

contentType

The content type for the attachment

- (instancetype)
initWithData: (NSData *)data
filename: (NSString *)filename
contentType: (NSString *)contentType
NS_DESIGNATED_INITIALIZER;