CEAdImage
Overview
CEAdImage
contains the information of image icon.
Interface
url
url
Declaration
Discussion
The local file url of the image file.
width
width
Declaration
Discussion
The width of the image.
height
height
Declaration
Discussion
The height of the image.
- initWithFilePath:
- initWithFilePath:
Declaration
Parameters
name
description
filePath
The local file path of the image.
Return Value
A CEAdImage
instance.
Discussion
The filePath
should have file://
prefix and point to a existing image file on the disk. The width and height properties are both 0 for those constructed from this initializer.
- initWithURL:width:height:
- initWithURL:width:height:
Declaration
Parameters
name
description
url
A NSURL
object which points to a local image file.
width
The width of the image.
height
The height of the image.
Return Value
A CEAdImage
instance.
Discussion
The filePath
should point to a existing image file on the disk.
- loadImageAsyncWithBlock:
- loadImageAsyncWithBlock:
Declaration
Parameters
name
description
block
Callback invoked when image is loaded.
Discussion
This method load the image from url
in background and invoke block
on main thread when image is loaded.
Last updated