Skip to content

CAPullToRefreshView

9miao edited this page Sep 17, 2014 · 1 revision

CAPullToRefreshView

Class Description

pull-to-refresh view that provides pull-to-refresh operation for scrollView and its derived classes.

Base Class

CAView

Attribute

Access modifier

Attribute name

Description

protected

PullToRefreshText

tooltip when pulling to refresh

protected

ReleaseToRefreshText

tooltip when releasing pull operation

protected

RefreshingText

tooltip when refreshing

protected

LabelColor

tooltip color

private

PullToImage

tooltip image when pulling

protected

LoadingView

loading animation

protected

PullToRefreshType

pull-to-refresh type

Method

Access modifier

Method name

Description

public

create

create pull-to-refresh view

Attribute Description

PullToRefreshText
Type: string
Descripiton: tooltip when pulling down, public get/set{}.

ReleaseToRefreshText
Type: string
Descripiton: tooltip when releasing pull operation, public get/set{}.

RefreshingText
Type: string
Descripiton: tooltip when refreshing, public get/set{}.

LabelColor
Type: CAColor4B
Descripiton: all tooltip’s color, public get/set{}.

PullToImage
Type: CAImage*
Descripiton: tooltip image when pulling, public get/set{}.

LoadingView
Type: CAActivityIndicatorView*
Descripiton: loading animation, public get/set{}.

PullToRefreshType
Type: CAPullToRefreshType
Descripiton: pull-to-refresh type, here the ‘type’ actually means the location of refresh view, public get/set{}.

Method Description

static CAPullToRefreshView create(const CAPullToRefreshType& type)*
Return value: void
Parameter:

Type

Parameter name

Description

const CAPullToRefreshType&

type

pull-to-refresh type

Descripiton: Create a pull-to-refresh view and indicate view’s type, type is an enumeration value. CAPullToRefreshType includes five types: pull up and pull down to refresh opeartion that is similar to tableView and collectionView; pull left and pull right to refresh operation of listView; fully customized pull-to-refresh operation.
typedef enum
{
    CAPullToRefreshTypeHeader = 0,
    CAPullToRefreshTypeFooter,
    CAPullToRefreshTypeLeftHeader,
    CAPullToRefreshTypeRightFooter,
    CAPullToRefreshTypeCustom
}CAPullToRefreshType;
Clone this wiki locally