TKEmptyView Class Reference
Inherits from | TKGradientView : UIView |
Declared in | TKEmptyView.h |
Tasks
Initializing a TKEmptyView Object
-
– initWithFrame:mask:title:subtitle:
Initializes an empty view with an image that will be stylized.
-
– initWithFrame:emptyViewImage:title:subtitle:
Initializes an empty view with the given
TKEmptyViewImage
.
Properties
-
imageView
The image view for the empty content.
property -
titleLabel
The title message.
property -
subtitleLabel
The secondary message.
property
Set the Empty View Image
-
– setImage:
The image that be used to mask the glyph that will be displayed above the title message. This image needs to be a transparent png image.
-
– setEmptyImage:
Set the empty view to a bundled image.
Properties
imageView
The image view for the empty content.
@property (nonatomic, strong) UIImageView *imageView
Discussion
The image view for the empty content.
Declared In
TKEmptyView.h
Instance Methods
initWithFrame:emptyViewImage:title:subtitle:
Initializes an empty view with the given TKEmptyViewImage
.
- (id)initWithFrame:(CGRect)frame emptyViewImage:(TKEmptyViewImage)image title:(NSString *)titleString subtitle:(NSString *)subtitleString
Parameters
- frame
The frame of the
UIView
.
- image
The bundled image that will be the central image.
- titleString
The title of the empty view.
- subtitleString
The subtitle of the empty view.
Return Value
An initialized TKEmptyView
object or nil if the object couldn’t be created.
Discussion
Initializes an empty view with the given TKEmptyViewImage
.
Warning: Make sure to include the bundle included with the framework in your own project.
Declared In
TKEmptyView.h
initWithFrame:mask:title:subtitle:
Initializes an empty view with an image that will be stylized.
- (id)initWithFrame:(CGRect)frame mask:(UIImage *)image title:(NSString *)titleString subtitle:(NSString *)subtitleString
Parameters
- frame
The frame of the
UIView
.
- image
The image that will appear central in the view.
- titleString
The title of the empty view.
- subtitleString
The subtitle of the empty view.
Return Value
An initialized TKEmptyView
object or nil if the object couldn’t be created.
Discussion
Initializes an empty view with an image that will be stylized.
Declared In
TKEmptyView.h
setEmptyImage:
Set the empty view to a bundled image.
- (void)setEmptyImage:(TKEmptyViewImage)image
Parameters
- image
Set the image to a preset image.
Discussion
Set the empty view to a bundled image.
Declared In
TKEmptyView.h
setImage:
The image that be used to mask the glyph that will be displayed above the title message. This image needs to be a transparent png image.
- (void)setImage:(UIImage *)image
Parameters
- image
Set the image as the empty image.
Discussion
The image that be used to mask the glyph that will be displayed above the title message. This image needs to be a transparent png image.
Declared In
TKEmptyView.h