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"
.
精彩评论