我正在为我的应用程序实现一个文档提供程序,我必须在其中模拟文件夹导航。
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 Document Provider 扩展的相同行为?
Best Answer-推荐答案 strong>
你不能,如果你放上你的导航 Controller ,你会看到两个导航栏——你的和系统的。系统导航栏是私有(private)的,您无权访问它。目前,您无法制作像 iCloud 这样的文档提供程序扩展。
关于ios - 我可以使用 Document Provider 扩展上的导航 Controller 来模拟文件夹导航吗?,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/26409656/
|