FBAdImage
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

Represents an image creative.

Inherits from:NSObject
Declared in:FBAdImage.h
ทรัพย์สิน
height

Typed access to the image height.

@property (nonatomic, assign, readonly) NSInteger height;
ให้คำรับรองไว้ใน: FBAdImage.h
url

Typed access to the image url.

@property (nonatomic, copy, readonly, nonnull) NSURL *url;
ให้คำรับรองไว้ใน: FBAdImage.h
width

Typed access to the image width.

@property (nonatomic, assign, readonly) NSInteger width;
ให้คำรับรองไว้ใน: FBAdImage.h
วิธีการทันใจ
initWithURL:width:height:

This is a method to initialize an FBAdImage.

พารามิเตอร์คำอธิบาย
url

The image url.

width

The image width.

height

The image height.

- (instancetype)
initWithURL: (NSURL *)url
width: (NSInteger)width
height: (NSInteger)height
NS_DESIGNATED_INITIALIZER;
ให้คำรับรองไว้ใน: FBAdImage.h
loadImageAsyncWithBlock:

Loads an image from self.url over the network, or returns the cached image immediately.

พารามิเตอร์คำอธิบาย
block

Block to handle the loaded image.

- (void) loadImageAsyncWithBlock:(nullable void(^)(UIImage * __nullable image))block;
ให้คำรับรองไว้ใน: FBAdImage.h