FBAdImage
Há uma versão mais recente desta classe disponível. Confira. a versão mais recente.

Represents an image creative.

Inherits from:NSObject
Declared in:FBAdImage.h
Propriedades
height

Typed access to the image height.

@property (nonatomic, assign, readonly) NSInteger height;
Declarado em: FBAdImage.h
url

Typed access to the image url.

@property (nonatomic, copy, readonly, nonnull) NSURL *url;
Declarado em: FBAdImage.h
width

Typed access to the image width.

@property (nonatomic, assign, readonly) NSInteger width;
Declarado em: FBAdImage.h
Métodos da instância
initWithURL:width:height:

This is a method to initialize an FBAdImage.

ParâmetroDescrição
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;
Declarado em: FBAdImage.h
loadImageAsyncWithBlock:

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

ParâmetroDescrição
block

Block to handle the loaded image.

- (void) loadImageAsyncWithBlock:(nullable void(^)(UIImage * __nullable image))block;
Declarado em: FBAdImage.h