iOS开发:如何构建复杂的结构化iPad应用程序? [英] iOS Development: How can I build a complex structured iPad Application?

查看:124
本文介绍了iOS开发:如何构建复杂的结构化iPad应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个场景,其中3个子应用程序嵌入到主要应用程序中。
我正在尝试使用splitviewcontroller来更改我的detailview的内容,但是我无法在不丢失popover的情况下替换detailviewcontroller。

I have a scenario with 3 sub-applications embedded into a main one. I'm trying to use the splitviewcontroller to change my detailview's content, but I couldn't replace the detailviewcontroller without losing the popover.

问题:
1 - 我如何建立一个有组织的结构来维护我的项目?
2 - 如何用另一个替换我的detailviews viewcontroller?
3 - 我应该使用故事板还是分开的XIB?
4 - 我可以从一个简单的视图调用一个splitviewcontroller吗? (登录(单个) - > AppSelection(单个) - > App1(splitview)。

Questions: 1-How can I build a organized structure to maintain my project? 2-How can I replace my detailviews viewcontroller by another? 3-Should I use storyboard or separated XIB's? 4-Can I "call" a splitviewcontroller from a simple view? (Login(single)->AppSelection(single)->App1(splitview).

这是我项目的草图

Here is a sketch of my project

推荐答案

看起来就像你已经得到它主要是故事板一样,所以我肯定会推荐这种方法!

Looks like you've already got it mostly storyboarded, so I would definitely recommend that approach!

我无法弄清楚如何仅使用分割视图你必须按下按钮并用你的拆分视图替换窗口的rootViewController(你可以从故事板加载,或者只是一个普通的笔尖,如果你愿意的话。)

I wasn't able to figure out how to segue to a split view using just storyboards and nothing else. You will have to get the button press and replace the window's rootViewController with your split view (which you could load from a storyboard, or just a plain nib, if you wanted.)

这篇关于iOS开发:如何构建复杂的结构化iPad应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆