CATabBarItem

2018-09-08 16:48 更新

類(lèi)說(shuō)明

每個(gè)viewController都具有一個(gè)tabBarItem,在tabBar中標(biāo)識(shí)當(dāng)前的viewController。


基類(lèi)

CABarItem


CATabBarItem 屬性(點(diǎn)擊查看方法介紹)

屬性說(shuō)明
SelectedImage選中時(shí)的圖片
BadgeValue標(biāo)簽


CATabBarItem 方法 (點(diǎn)擊查看方法介紹)

屬性說(shuō)明
create創(chuàng)建
init初始化


CATabBarItem 屬性說(shuō)明

SelectedImage

類(lèi)型:CAImage*

解釋?zhuān)簍abBarItem被選中時(shí)的圖片,get/set{}。


BadgeValue

類(lèi)型:std::string

解釋?zhuān)簶?biāo)簽,get/set{}。


CATabBarItem 方法說(shuō)明

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

返回值:static CATabBarItem*

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
stringtitle顯示標(biāo)題
CAImage*image顯示圖片
CAImage*selectedImage被選中時(shí)的圖片,可選參數(shù)。

解釋?zhuān)簞?chuàng)建一個(gè)tabBarItem,并指定它的標(biāo)題,圖片。

    

bool init(const std::string& title, CAImage* image, CAImage* selectedImage = NULL);

返回值:bool

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
stringtitle顯示標(biāo)題
CAImage*image顯示圖片
CAImage*selectedImage被選中時(shí)的圖片,可選參數(shù)。

解釋?zhuān)撼跏蓟?/span>

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)