gpt4 book ai didi

iphone - initWith BarButtonSystemItem :UIBarButtonSystemItemPageCurl not working

转载 作者:行者123 更新时间:2023-11-29 13:41:31 25 4
gpt4 key购买 nike

我正在创建一个 barbutton 项并将其添加到我的导航 Controller 工具栏

UIBarButtonItem *barButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemPageCurl target:self action:@selector(pageCurlAction:)] autorelease];

并且 barbutton 项目正确地加载了我的 viewcontroller 中的工具栏。现在,我将一个新的 viewcontroller 插入我的 View ,当我弹出 viewcontroller 时,我的带有 page curl 的 barbutton 项目缩小并且 page curl 图像丢失在栏按钮上。

我试着改变

initWithBarButtonSystemItem

UIBarButtonSystemItemPlay, UIBarButtonSystemItemPause, UIBarButtonSystemItemFastForward 

等但是,它适用于他们。它只是未加载的页面 curl 图标。有什么原因吗?

最佳答案

来自iOS Human Interface Guidelines :

In addition, you can use the system-provided page curl button in a toolbar (for more information, see the documentation for UIBarButtonSystemItemPageCurl in UIBarButtonItem Class Reference). The page curl button is not available for use in a navigation bar.

(强调已添加。)

关于iphone - initWith BarButtonSystemItem :UIBarButtonSystemItemPageCurl not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8990102/

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