开发者

Image in the UINvaigationItem - high resolution

I'm setting the title view to my UINavigationItem like this

UIImageView *navigationImage = [[UIImageView alloc] 
                   initWithImage:[UIImage imageNamed:@"header"]];
self.navigationItem.t开发者_如何学PythonitleView = navigationImage;
[navigationImage release];

Can I have 2 images, using the header@2x for high resolution, like it happens with icons?


Yes. Did you try it and it didn't work? Try @"header.png" instead of @"header".

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜