iOS 7.1 업데이트 후 tabBar의 이미지를 볼 수 없지만 하나의 이미지를 클릭하면 나타납니다. 나는 문제를 검색하고 내가 selectedImage를 추가해야합니다 것을 발견iOS 7.1로 업데이트 한 후 tabBar 이미지가 사라졌습니다.
UINavigationController* myController;
.. //some code here
myController.tabBarItem.image = [UIImage imageNamed:@"someImage.png"];
myController.navigationBar.barTintColor = myColor;
myController.navigationBar.translucent = NO;
//and so on for the remaining controllers, then I add them to the tabBarController
한 tabBar 항목의 이미지를 설정하려면 다음 코드를했습니다하지만
myController.tabBarItem.selectedImage = [UIImage imageNamed:@"someImage.png"];
어떤 생각을 작동하지 않았다?
나는 문제가 내 대답
당신이 정확한 철자와 정확한 경우에, 확인 했 이미지 파일 이름에? – Gallymon
예, 이미 iOS 7.1 이상에서 작동하지만 iOS 7.1로 업데이트 한 후 사라졌습니다. – Sawsan
"문제를 검색 한 결과 selectedImage를 추가해야하지만 작동하지 않았습니다." 그래서 7.0에서 요구되지 않은 7.1에서 필요한 것을 발견했다고 생각하니? – Gallymon