ios - 我可以在 Document Provider 扩展上使用 Navigation Controller 来模拟文件夹导航吗?

标签 ios objective-c iphone

我正在为我的应用程序实现一个文档提供程序,我必须在其中模拟文件夹导航。

Apple documentation说:

In either case, the host app presents a document picker view controller. The system then imbeds your Document Picker View Controller extension inside the app’s view controller. The app’s view controller provides a navigation bar with the document provider’s name, a location switcher, and a Done button. Your extension must provide the rest of the user interface.

和:

The UIDocumentPickerExtensionViewController object acts as the root view controller for your user interface; therefore, it is often convenient to make it a container controller. You can then create a separate child view controllers for each mode, and your extension simply presents the appropriate child view controller in your prepareForPresentationInMode: method.

有没有办法使用主导航 Controller 来推送自定义 View Controller 并模拟 iCloud 文档提供程序扩展的相同行为?

最佳答案

你不能,如果你放置你的导航 Controller ,你会看到两个导航栏——你的和系统。系统导航栏是私有(private)的,您无权访问。目前,您还不能制作像 iCloud 这样的文档提供程序扩展。

关于ios - 我可以在 Document Provider 扩展上使用 Navigation Controller 来模拟文件夹导航吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26409656/

相关文章:

iphone - 委托(delegate)覆盖

ios - 延迟更新UI

iphone - CGImageGetBytesPerRow() 在 iOS 模拟器和 iOS 设备上返回不同的值

ios - 如何在 objective-c 中的其他 View Controller 中隐藏按钮

ios - NSDictionary 被视为 bool 值 - 无法调试

ios - UIActionSheet 不从屏幕底部显示

ios - IAP iOS 抛出错误域=SKErrorDomain 代码=0 "Cannot connect to iTunes Store"

ios - iOS 推送通知中的图像

ios - 下载大文件

iphone - iOS - 解析不同格式的日期