Inherits from TKGradientView : UIView
Declared in TKEmptyView.h

Overview

A simple view for showing no content available.

Tasks

Initializing a TKEmptyView Object

Properties

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

subtitleLabel

The secondary message.

@property (nonatomic, strong) UILabel *subtitleLabel

Discussion

The secondary message.

Declared In

TKEmptyView.h

titleLabel

The title message.

@property (nonatomic, strong) UILabel *titleLabel

Discussion

The title message.

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