선택한 UITabBarItem의 글꼴을 굵은 글꼴로 변경하고 싶습니다. 나는 이미지와 텍스트를 흰색으로 설정하고 글꼴을 설정하기 위해 다음을 수행했지만 글꼴이 아닌 UITabBarItem을 선택할 때만 색상이 변경됩니다.선택한 UITabBarItem의 글꼴을 대칭 코드로 변경
// Normal font
[self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:MY_LIGHT_FONT, NSFontAttributeName, [UIColor grayColor], NSForegroundColorAttributeName,nil] forState:UIControlStateNormal];
// Selected font
[self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:MY_BOLD_FONT, NSFontAttributeName, [UIColor whiteColor], NSForegroundColorAttributeName,nil] forState:UIControlStateSelected];
선택한 글꼴로 아무 것도 바뀌지 않습니다.
달력 텍스트는 굵은해야한다.
확인이 ans와 http://stackoverflow.com/a/41082581/4831524 –
이 HTTP를 찾습니다//library/questions/11069437/changing-font-in-uitabbaritem – liangju
@liangju UIStateNormal의 경우 이미 내 솔루션이 작동하지만 선택되지 않았습니다. –