For any one who comes here later, here is what i do
After Some tries i've used a hack as follow
Following is code
#define isIPhone6 [[UIScreen mainScreen] bounds].size.height > 568 ? YES : NO
UITabBar *tabBar = tabBarController.tabBar;
UIImage* tabBarBackground = [UIImage imageNamed:@"tab_bar1.png"];
if (isIPhone6) {
tabBarBackground = [UIImage imageNamed:@"tab_bar2@3x.png"];
}
[tabBar setBackgroundImage:tabBarBackground];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.