2013-10-12 417 views
1

我有自定義選項卡控制器圖形,確實在其上顯示徽章。在iOS7下,它們不再顯示。 iOS7下的徽章處理方式有何不同?在iOS7下缺少徽章

// loading the custom icons for first tab 
UITabBarItem *tabicon1 = [[UITabBarItem alloc] initWithTitle:@"" image:[UIImage imageNamed:@"NewItemsSelected.png"] tag:0]; 
[tabicon1 setFinishedSelectedImage:[UIImage imageNamed:@"NewItemsSelected.png"] withFinishedUnselectedImage:[UIImage imageNamed:@"NewItemsUnselected.png"]]; 
UIViewController *first = [self.viewControllers objectAtIndex:0]; 
[first setTabBarItem:tabicon1]; 

// testing for waiting items 
int items_waiting = [self itemsWaitingCheck:0:1]; 
if (items_waiting > 0) 
{ 
    // displaying items waiting for the first tab 
    tabicon1.badgeValue = [NSString stringWithFormat:@"%d", items_waiting]; 
} 

回答

0

答案已發現。蘋果公司改變了標籤控制器欄的高度,將徽章顯示器從視野中移開,隱藏在我故意超大的圖形後面。現在我不得不重新設計我的選項卡圖形,除非有人知道如何更改徽章顯示位置?