我正在创建一个 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
inUIBarButtonItem
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/