当我使用 UINavigationBar 时,我的应用程序被拒绝
由于以下代码,我的应用程序被 Apple 拒绝作为电子邮件,Apple 声明 showButtonWithLeftTitle
为私有 API 方法,因此请提供帮助。
nav = [[UINavigationBar alloc]
initWithFrame: CGRectMake(0.0f, 433.0f-rotatecheck, 320.0f, 48.0f)];
[nav showButtonsWithLeftTitle: @"<<"
rightTitle: @">>" leftBack: NO];
My app is rejected as email by Apple due to following code, Apple declared showButtonWithLeftTitle
as private API method so any help please..
nav = [[UINavigationBar alloc]
initWithFrame: CGRectMake(0.0f, 433.0f-rotatecheck, 320.0f, 48.0f)];
[nav showButtonsWithLeftTitle: @"<<"
rightTitle: @">>" leftBack: NO];
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么要自己创建一个导航栏呢?也许您最好创建一个 UINavigationController 并在其导航堆栈上设置视图控制器的 navigationItem 的左右按钮。如果您确实只想要导航栏,请创建一个
UINavigationItem
(设置了左右按钮)并将其推送到导航栏的导航堆栈上 (pushNavigationItem:animated:
)。如果您需要更多按钮而不仅仅是左右按钮,请使用 UIToolbar。Why do you want to create a navigation bar by yourself? Perhaps it's a better idea for you to create an
UINavigationController
and set the left and right buttons of the navigationItem of the view controller on its navigation stack. If you really just want the navigation bar, create anUINavigationItem
(with left and right buttons set) and push it onto the navigation stack of your navigation bar (pushNavigationItem:animated:
). If you need more buttons than just a left and right one, useUIToolbar
.