TabBarController +核心数据xcode 4.2 上的 XML 钻取表

发布于 2024-12-13 11:04:00 字数 737 浏览 3 评论 0原文

好吧,我必须以这种方式提供我的应用程序:

TabBarController
|
|--- 1) 使用 coreData 来自 xml 的 TableView --- 1.1) 2 个选择后的详细视图
|
|--- 2)TableView(相同的xml)使用coreData(但使用其他标签)--- 2.1)2个选择后的DetailView
|
|--- 3)MapView 与谷歌地图等。

对于3)我没有问题,它有效。

我的问题与第1)点和第2)点有关。

我遵循了这个指南: http://blog.sallarp.com /iphone-core-data-uitableview-drill-down/ 其中解释了如何从 xml 文件创建向下钻取表。

我的 xml 与文件中的 xml 具有相似的结构,并且我需要一个以相同方式工作的表视图。

但现在在 xcode 4.2 中我想使用故事板,但在使代码适应故事板方面遇到了一些问题,因为窗口是以另一种方式加载的,而且我在使用 appdelegate 时也遇到了一些问题,因为我有一些错误在应用程序运行期间。

我的问题是: 1)我如何管理示例中的类和代码以获得如此复杂的应用程序方案? 2)我是否必须为每个解析器声明单独的委托?

有什么建议吗?

Well, i have to feed my application in this way:

TabBarController
|
|--- 1)TableView from xml using coreData --- 1.1)Detail View aftehr 2 choices
|
|--- 2)TableView (same xml) using coreData (but using other tags) --- 2.1)DetailView after 2 choice
|
|--- 3)MapView with google maps etcetc.

for the 3) i have no problem, it works.

My question is related to the point 1) and 2).

I've followed this guide: http://blog.sallarp.com/iphone-core-data-uitableview-drill-down/
which explain how to create a drill down table from a xml file.

my xml has a similar structure with the xml in the file, and i need a table view who works in the same way.

But now in xcode 4.2 i want to use the storyboard but i've got some problem to adapt the code to the storyboard because the window is loaded in another way, and also i have some problem to use the appdelegate, because I have some error during the run of the application.

My question are:
1) How can i manage the classes and the code from the example to obtain a such complex app scheme?
2)Do I have to declare separates delegates for each parser?

Any suggestion?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

メ斷腸人バ 2024-12-20 11:04:00

我建议首先:

  1. 观看有关 Storyboarding 的 Apple 2011 开发人员视频,然后
  2. 使用 Storyboarding 和单个 UITableview 创建一个快速测试项目

一旦您掌握了基本流程/理解,迁移代码可能会变得更加清晰。

I'd suggest first:

  1. Watching the Apple 2011 developer video on Storyboarding, then
  2. Creating a quick test project using storyboarding and a single UITableview

Once you've got that basic flow/understanding, migrating your code might become clearer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文