有谁知道我在哪里可以找到iOS的标准图像图标(添加,共享,刷新等)?更好的是,有人可以指导我将一个按钮添加到工具栏的简单示例吗?我似乎无法在任何地方找到一个.
谢谢
解决方法
使用 – (id)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(id)target action:(SEL)action;将UIBarButtons添加到工具栏的方法.
UIBarButtonItem *barButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:target action:action];
这些是可用的类型
UIBarButtonSystemItemDone,UIBarButtonSystemItemCancel,UIBarButtonSystemItemEdit,UIBarButtonSystemItemSave,UIBarButtonSystemItemAdd,UIBarButtonSystemItemFlexibleSpace,UIBarButtonSystemItemFixedSpace,UIBarButtonSystemItemCompose,UIBarButtonSystemItemReply,UIBarButtonSystemItemAction,UIBarButtonSystemItemOrganize,UIBarButtonSystemItemBookmarks,UIBarButtonSystemItemSearch,UIBarButtonSystemItemRefresh,UIBarButtonSystemItemStop,UIBarButtonSystemItemCamera,UIBarButtonSystemItemTrash,UIBarButtonSystemItemPlay,UIBarButtonSystemItemPause,UIBarButtonSystemItemRewind,UIBarButtonSystemItemFastForward,
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。