开发者

Image in the UINvaigationItem - high resolution

开发者 https://www.devze.com 2023-03-28 15:15 出处:网络
I\'m setting the title view to my UINavigationItem like this UIImageView *navigationImage = [[UIImageView alloc]

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

精彩评论

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