iphone标签栏控制器和核心数据 [英] iphone tab bar controller and core data

查看:159
本文介绍了iphone标签栏控制器和核心数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ok位的新手类型问题。



我想使用Core Data,以及Tab和Navigation控制器。



在XCode中,如果我创建一个基于导航的应用程序,我得到选择核心数据的选项。如果我创建一个Tab Bar应用程序,我不能选择。



我理解Tab Bars显示视图控制器,所以它有意义。然而考虑到默认情况下,它坚持应用程序委托中的基本Core Data代码,我不明白为什么不提供。



这两个项目,并在它们之间剪切和粘贴。



XCode中的这个省略对你来说看起来很奇怪吗?是否有某种疏忽?



感谢,
Matt

解决方案>

这些模板设计得更加纯粹,任何模板的组合都留给开发人员练习。



他们可以做CoreData + Tab和Nav控制器模板,但为了公平,他们就必须做每一个其他组合,可能是合理的。



组合他们自己不是那么难,并且在开发中心有一些示例应用程序显示了一个工作应用程序中的一些组合。


Ok bit of a newbie type question.

I want to use Core Data, together with Tab and Navigation controllers.

In XCode if I create a Navigation Based Application I get the option to choose Core Data. Whereas If I create a Tab Bar Application I don't get the choice.

I understand that Tab Bars display view controllers so it kinda makes sense. However given that by default it sticks the basic Core Data code in the Application delegate I don't see why this isn't offered.

At the moment I'm creating the two projects and cutting and pasting between them.

Does this omission in XCode seem weird to you? Is it some sort of oversight?

Thanks, Matt

解决方案

The templates are designed to be more 'pure', any combination of the templates is left as an exercise for the developer.

They could do a CoreData + Tab and Nav Controller template, but to be fair they'd then have to do every other combination that might be 'reasonable'.

Combining them yourself isn't that hard, and there's sample apps in the dev centre that show some of the combinations within a working application.

这篇关于iphone标签栏控制器和核心数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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