如何获取“位置” UI工具栏按钮?

发布于 2024-10-07 10:22:30 字数 183 浏览 1 评论 0原文

我想添加一个类似于苹果地图应用程序中的“定位”按钮。

alt text

^There

我查看了边框按钮的选项,但没有列出。我怎样才能添加其中之一?

提前致谢。

I was looking to add a "locate" button similar to the one in Apple's Map app.

alt text

^There

I looked in the options for bordered buttons but it's not listed. How can I add one of these?

Thanks in advance.

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

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

发布评论

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

评论(1

花开雨落又逢春i 2024-10-14 10:22:30

你必须自己创建它。

例如,使用 UIBarButtonItem 的以下方法:

- (id)initWithImage:(UIImage *)image style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action

You have to create it yourself.

For example, using this method of UIBarButtonItem:

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