如何从没有背景的UINavigationBar
制作后退按钮...只显示iPhone的Youtube应用上看到的图像?
答案 0 :(得分:0)
靠近你的设计师并告诉他们按照你的意愿创建图像并把它放在UIButtont上,比如
UINavigationBar *bar = self.navigationController.navigationBar;
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithImage:myImage
style:UIBarButtonItemStyleBordered
target:self action:@selector(buttonPressed:)];
bar.leftBarButtonItem = item;
[bar.leftBarButtonItem setImage:[UIImage imageNamed:@"image.png"] forState:UIControlStateNormal];
[item release];