开发者

Tab Bar Icons won't show

So,here's my problem. When i try to put icons into resources and then select them into IB,once i load the Simulator that icons don't show up. I tried to clean the project up, but nothing.. It may be the fact that i have "home.png" and "home@2x.png" optimized for retina screen,and it can't recognize the right one? It's also happened again,but i solved with this:

- (void)drawRect:(CGRect)rect {
[[UIImage imageName开发者_开发百科d:@"image.png"] drawAsPatternInRect:rect];

}

But here? Is there a code for the Tab bar too?


I solved this by making 30x30 high quality icons, so that both standard and retina can read and show them properly.


Probably the target checkbox is not checked for these images

http://illogic-al.org/images/screenshots/Xcode_target.png

This checkbox should be checked to copy resources when installing on device/simulator, so when an image is not checked, il will not be copied and will not appear

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜