//
// AppDelegate.h
// MyCoreData
//
// Created by 郝 龙 on 13-9-11.
// Copyright (c) 2013年 haolong. All rights reserved.
//
#import <UIKit/UIKit.h>
// 引入CoreData框架
#import <CoreData/CoreData.h>
@class ViewController;
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
// 视图控制器属性
@property (strong, nonatomic) ViewController *viewController;
// 数据模型对象
@property (strong, nonatomic) NSManagedObjectModel *managedObjectModel;
// 上下文对象
@property (strong, nonatomic) NSManagedObjectContext *managedObjectContext;
// 持久性存储区
@property (strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;
#pragma -mark CoreData组建初始化
/*! @brief managedObjectModel的初始化赋值函数
* @return 托管对象
*/
- (NSManagedObjectModel *)managedObjectModel;
/*! @brief 初始化Core Data使用的数据库
* @return persistentStoreCoordinator对象
*/
- (NSPersistentStoreCoordinator *)persistentStoreCoordinator;
/*! @brief managedObjectContext的初始化赋值函数
* @return 托管对象上下文
*/
- (NSManagedObjectContext *)managedObjectContext;
/*---------------------- 常量定义 ----------------------*/
#pragma -mark 常量定义
// SQLite数据库名
#define KDatabaseName @"MyCoreData.sqlite"
#pragma -mark 常量定义 End
@end
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
MyCoreData.zip (22个子文件)
MyCoreData
MyCoreData
main.m 334B
MyCoreData-Info.plist 1KB
Default.png 6KB
Person.h 398B
DataModel.xcdatamodeld
DataModel.xcdatamodel
contents 810B
AppDelegate.h 1KB
AppDelegate.m 6KB
Default-568h@2x.png 18KB
icon.png 4KB
Default@2x.png 16KB
MyCoreData-Prefix.pch 323B
Person.m 228B
ViewController.h 1KB
ViewController.m 8KB
en.lproj
ViewController.xib 8KB
InfoPlist.strings 45B
MyCoreData.xcodeproj
project.xcworkspace
contents.xcworkspacedata 155B
xcuserdata
dragonfly.xcuserdatad
UserInterfaceState.xcuserstate 64KB
project.pbxproj 15KB
xcuserdata
dragonfly.xcuserdatad
xcschemes
xcschememanagement.plist 482B
MyCoreData.xcscheme 3KB
xcdebugger
Breakpoints_v2.xcbkptlist 91B
共 22 条
- 1
资源评论
- 雨下壹整夜2015-06-22看了下 还是有帮助的
- wangken332014-12-27不知道是资源问题还是网站问题啊,点拉下载后分扣了,东西没下下来
- qq18666802013-11-21一点用处都没有。
- Jackalsen2014-03-03很好 !值得学习
Hollydragon
- 粉丝: 1
- 资源: 78
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 最全空间计量实证方法(空间杜宾模型和检验以及结果解释文档).txt
- 5uonly.apk
- 蓝桥杯Python组的历年真题
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- 前端开发技术实验报告:内含4四实验&实验报告
- Highlight Plus v20.0.1
- 林周瑜-论文.docx
- 基于MIC+NE555光敏电阻的声光控电路Multisim仿真原理图
- 基于JSP毕业设计-基于WEB操作系统课程教学网站的设计与实现(源代码+论文).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功