问题描述
我有一个带有导航控制器的视图,我正在模态显示,我想添加一个形状类似于大多数 splitViewControllers 中使用的默认左箭头按钮的后退按钮.
I have a view with a navigation controller that I am showing modally and I want to add a back button that is shaped like the default left arrow buttons used in most splitViewControllers.
我可以创建一个基本按钮,但我真的想要左箭头形状 - 这是我现在拥有的:
I can create a basic button but I really want the left arrow shape - here is what i have now:
/* set title and nav bar items */
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Back To Thumbnails" style:UIBarButtonItemStylePlain target:self action:@selector(backToThumbnails:)] autorelease];
我在这里只看到了 3 个样式选项?任何建议都非常感谢!
I only saw 3 options for style here? Any suggestions are greatly appreciated!
推荐答案
不幸的是,创建这样的按钮不属于公共 API,您需要自定义 带有图像的 UIBarButton.
Unfortunately creating a button like that is not apart of the public API, you'll need to make a custom UIBarButton with an image.
这篇关于在 UINavigationController 上创建返回箭头形状的 leftBarButtonItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)