gpt4 book ai didi

cocoa - 当我使用 UINavigationBar 时,我的应用程序被拒绝

转载 作者:行者123 更新时间:2023-12-03 17:16:45 26 4
gpt4 key购买 nike

由于以下代码,我的应用程序被 Apple 拒绝作为电子邮件,Apple 声明 showButtonWithLeftTitle 为私有(private) API 方法,因此请提供帮助..

nav = [[UINavigationBar alloc] 
initWithFrame: CGRectMake(0.0f, 433.0f-rotatecheck, 320.0f, 48.0f)];

[nav showButtonsWithLeftTitle: @"<<"
rightTitle: @">>" leftBack: NO];

最佳答案

为什么要自己创建一个导航栏?也许您最好创建一个 UINavigationController 并在其导航堆栈上设置 View Controller 的 navigationItem 的左右按钮。如果您确实只想要导航栏,请创建一个 UINavigationItem (设置了左右按钮)并将其推送到导航栏的导航堆栈上 (pushNavigationItem:animated: )。如果您需要更多按钮而不仅仅是左右按钮,请使用 UIToolbar

关于cocoa - 当我使用 UINavigationBar 时,我的应用程序被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4376416/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com