Inherits from UIViewController
Declared in TKViewController.h

Overview

This class provides basic lazy loading views and easy network request management for a UIViewController.

Tasks

Properties

  •   loadingView

    Returns a loading view with an UIActivityIndicatorView center on the view

    property

Network Request Management

Properties

loadingView

Returns a loading view with an UIActivityIndicatorView center on the view

@property (strong, nonatomic) UIView *loadingView

Discussion

Returns a loading view with an UIActivityIndicatorView center on the view

Declared In

TKViewController.h

Instance Methods

activeRequestCount

Returns the current number of request managed by the view controller.

- (NSInteger)activeRequestCount

Discussion

Returns the current number of request managed by the view controller.

Declared In

TKViewController.h

addActiveRequest:

Associate active network requests with a specific view controller for easy management.

- (void)addActiveRequest:(TKHTTPRequest *)request

Parameters

request

The network request which you want to have the view controller manage.

Discussion

Associate active network requests with a specific view controller for easy management.

Declared In

TKViewController.h

cancelActiveRequests

Cancel all active network requests managed by the view controller.

- (void)cancelActiveRequests

Discussion

Cancel all active network requests managed by the view controller.

Declared In

TKViewController.h

removeActiveRequest:

Remove an active request.

- (void)removeActiveRequest:(TKHTTPRequest *)request

Parameters

request

The request that will be removed.

Discussion

Remove an active request.

Declared In

TKViewController.h