Skip to content
9miao edited this page Sep 19, 2014 · 2 revisions

CATabBarItem

Class Description

Every viewController has a tabBarItem that is used to identify current veiwController in tabBar.

Base Class

CABarItem

Attribute

Access modifier

Attribute name

Description

private

SelectedImage

image in selected condition

Method

Access modifier

Method name

Description

public

create

factory method that is used to instantiate a CATabBarItem

Attribute Description

SelectedImage
Type: CAImage*
Descripiton: image when tabBarItem is selected, get/set{}.

Method Description

static CATabBarItem create(std: : string title, CAImage image,CAImage* selectedImage=NULL)**
Return value: static CATabBarItem*
Parameter:

Type

Parameter name

Description

string

title

tabBarItem’s displayed title

 

CAImage*

image

tabBarItem’s displayed image

 

CAImage*

selectedImage

image when tabBarItem is selected, optional parameters.

Descripiton: create a tabBarItem and designate title, image.
Clone this wiki locally