我们可以在 iPhone 应用程序的导航栏左侧添加一个电子邮件按钮吗?

发布于 2024-10-06 13:26:32 字数 124 浏览 1 评论 0原文

我的 iPhone 应用程序具有电子邮件功能。我想将电子邮件按钮放置在应用程序导航栏的左侧。该应用程序没有“后退”链接,因此我在导航栏左侧有空间来添加电子邮件按钮。

我想知道苹果允许吗?因为这不是该位置按钮的默认行为。

My iphone application has email functionality. I want to place the email button on the left hand side of the navigation bar of the application. The application do not have "back" link, so i have space on left side of the navigation bar, to add email button.

I want to know, whether it is allowed by apple? as it is not the default behavior of the button at that location.

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

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

发布评论

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

评论(2

你不是我要的菜∠ 2024-10-13 13:26:32

这是允许的,没问题。

That's allowed, no problem.

青瓷清茶倾城歌 2024-10-13 13:26:32
self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc] initWithTitle:@"Email" style:UIBarButtonItemStyleBordered target:self action:@selector(createMail:)];

-(void)createMail:(id)sender
{
    //code here for mail functionallity.
}

用这个来解决你的问题

self.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc] initWithTitle:@"Email" style:UIBarButtonItemStyleBordered target:self action:@selector(createMail:)];

-(void)createMail:(id)sender
{
    //code here for mail functionallity.
}

Use this to solve your problem

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