0
我正在處理基於導航的應用程序...首先,當我按下提醒按鈕時,它會顯示標籤,按鈕,圖像和下方的tabbar項目...我們如何添加標籤欄項目?如何在導航控制器中添加tabbar項目?
我正在處理基於導航的應用程序...首先,當我按下提醒按鈕時,它會顯示標籤,按鈕,圖像和下方的tabbar項目...我們如何添加標籤欄項目?如何在導航控制器中添加tabbar項目?
最多用途的方法是添加透明的UIView,然後添加任何東西給它:用標題/類型
UIView *buttonsHandlerView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 50)];
buttonsHandlerView.backgroundColor = [UIColor clearColor];
UIBarButtonItem *backButtonItem = [[UIBarButtonItem alloc] initWithCustomView:buttonsHandlerView];
[self.navigationItem setRightBarButtonItem:backButtonItem animated:YES];
[backButtonItem release];
//[buttonsHandlerView addSubview:__anything__];
[buttonsHandlerView release];
或init的UIBarButtonItem,並把它作爲按鈕