iphone - initWith BarButtonSystemItem :UIBarButtonSystemItemPageCurl not working

标签 iphone ios uibarbuttonitem page-curl

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

相关文章:

ios - 如何在 iOS 8 中使用 Touch ID 传感器

ios - SoundCloud cocoa 包装器无法在没有帐户的情况下访问资源

ios - 如何在社交媒体帖子中显示 UIView

ios - iOS 设备的后台蓝牙

iphone - uibarbuttonitem iOs 6 横向的自定义图像

ios - 显示 UIBarButtonItem 菜单时获取事件

ios - CFBundleDocumentTypes -- 在 'Photos' 中列出我的应用程序

c# - MonoTouch - 从 Jenkins 运行 mdtool

ios: leftBarButtonItem.target 和 .action

iPhone : Upload video to Youtube while running app in device