How do you change color/image on the default backBarButtonItem?

拜拜、爱过 提交于 2019-12-01 12:44:53

If you want the button to be blue (like a Done button) and have the title "Save" you can use one of the built in bar button item types:

UIBarButtonItem *item = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(myAction:)] autorelease];

Ok found the solution (not so good but it works) do this: 1: Implement the button from this tutorial: www.switchonthecode.com

This will override the default behavior of navigationbar.

2: Implement this in every view that needs the custom button: osmorphis.blogspot.com

BR

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!