如何创建带有向左大箭头的后退按钮(如 iPod 应用程序)

发布于 2024-11-19 09:00:10 字数 245 浏览 5 评论 0原文

如何创建像 iPod 应用程序中那样带有向左大箭头的后退按钮?我不是问如何创建向左按钮,而是如何获取向左箭头作为按钮上的标签,如 iPod 应用程序正在播放的屏幕所示:

iPod now Playing screen

显然,图像就可以解决问题,但也许他们使用了 Unicode 字符?另外,令我惊讶的是没有关于此的讨论(或者至少我找不到)。

How do I create a back button with a large left-facing arrow like in the iPod app? I'm not asking how to create a left-facing button, but how to get a left-facing arrow as the label on a button, as seen in the iPod app's now playing screen:

iPod now playing screen

Obviously an image would do the trick, but perhaps there is a Unicode character that they used? Also, I'm surprised that there's no discussion about this (or at least none that I could find).

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

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

发布评论

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

评论(1

桃酥萝莉 2024-11-26 09:00:10

我就是这样做的。您创建图像并将其设置为后退按钮。下面的代码是我的应用程序中的代码。

UIImage *imageFullscreen = [UIImage imageNamed: @"fullscreen.png"];

[[self navigationItem] setRightBarButtonItem:[[[UIBarButtonItem alloc] initWithImage:imageFullscreen style:UIBarButtonItemStylePlain target:self action:@selector(hide)]autorelease]];

This is the way I would do it. You create the image and set it as the back button. The code below is what I have in my application.

UIImage *imageFullscreen = [UIImage imageNamed: @"fullscreen.png"];

[[self navigationItem] setRightBarButtonItem:[[[UIBarButtonItem alloc] initWithImage:imageFullscreen style:UIBarButtonItemStylePlain target:self action:@selector(hide)]autorelease]];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文