Iphone 自定义导航栏按钮与 SystemButtonImage

发布于 2024-08-24 04:24:57 字数 119 浏览 4 评论 0原文

我正在使用自定义导航栏按钮,因此我可以为它们提供与导航栏不同的色调。

但我看不到一种方法让它们显示系统按钮(如重新加载的符号)。

我想这些都是私人的。你们中有人有我可以使用的匹配符号/图像吗?

I'm working with custom navigationBarButtons so I can give them a different tint-color thant the navigation Bar.

But I can't see a way to get them to show a systemButton (Like the symbol for reloading).

I guess these are private. Does anyone of you have matching symbols/images I can use?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过去的过去 2024-08-31 04:24:57

如果您要子类化 UIBarButtonItem,那么您仍然应该能够使用 initWithBarButtonSystemItem:target:action: 方法来初始化它。您可以传入一个 systemItem 进行刷新(重新加载)或添加等。

如果您需要自定义初始化行为,请考虑在子类中重写此方法,只需记住调用超级实现即可。

If you're subclassing UIBarButtonItem, then you should still be able to init it with the initWithBarButtonSystemItem:target:action: method. You can pass in a systemItem for refresh (reload) or add, etc..

If you need custom init behaviour, consider overriding this method in your subclass, just remember to call the super implementation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文