views:

18

answers:

1

is it possible to assign a highres custom uitabbaritem image?

    UIImage *img;
    img = [UIImage imageNamed:@"[email protected]"];
    self.tabBarItem = [[UITabBarItem alloc] initWithTitle:@"more" image:img tag:5];

this doesnt work. is there a workaround, or even better an officel link / solution for this usecase?

thanks alex

A: 

If you're using imageNamed, you can exclude the @2x. The way imageNamed works is that if you're on a high res device it automatically loads the @2x file if it exists, otherwise it loads the regular file.

BarrettJ
works perfect. thanks.
Alex Milde