资源简介
利用 CoreData 框架来构建简易的成绩管理系统
具体内容:利用表视图和 CoreData 框架来实现学生成绩的增、删、查 和找。
代码片段和文件信息
//
// AppDelegate.m
// CoreDataTest
//
// Created by Joyce on 11/9/15.
// Copyright © 2015 Joyce. All rights reserved.
//
#import “AppDelegate.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks disable timers and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
// Saves changes in the application‘s managed object context before the application terminates.
[self saveContext];
}
#pragma mark - Core Data stack
@synthesize managedobjectContext = _managedobjectContext;
@synthesize managedobjectModel = _managedobjectModel;
@synthesize persistentStoreCoordinator = _persistentStoreCoordinator;
- (NSURL *)applicationDocumentsDirectory {
// The directory the application uses to store the Core Data store file. This code uses a directory named “zoom.CoreDataTest“ in the application‘s documents directory.
return [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastobject];
}
- (NSManagedobjectModel *)managedobjectModel {
// The managed object model for the application. It is a fatal error for the application not to be able to find and load its model.
if (_managedobjectModel != nil) {
return _managedobjectModel;
}
NSURL *modelURL = [[NSBundle mainBu
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-11-10 20:58 CoreDataTest\
文件 6148 2015-11-10 22:51 CoreDataTest\.DS_Store
目录 0 2015-11-22 09:56 __MACOSX\
目录 0 2015-11-22 09:56 __MACOSX\CoreDataTest\
文件 120 2015-11-10 22:51 __MACOSX\CoreDataTest\._.DS_Store
目录 0 2015-11-15 14:49 CoreDataTest\.git\
文件 15 2015-11-09 21:53 CoreDataTest\.git\COMMIT_EDITMSG
文件 137 2015-11-09 21:53 CoreDataTest\.git\config
文件 73 2015-11-09 21:53 CoreDataTest\.git\desc
文件 23 2015-11-09 21:53 CoreDataTest\.git\HEAD
目录 0 2015-11-10 07:55 CoreDataTest\.git\hooks\
文件 177 2015-11-09 21:53 CoreDataTest\.git\hooks\README.sample
文件 3176 2015-11-10 07:42 CoreDataTest\.git\index
目录 0 2015-11-10 07:55 CoreDataTest\.git\info\
文件 40 2015-11-09 21:53 CoreDataTest\.git\info\exclude
目录 0 2015-11-22 09:56 __MACOSX\CoreDataTest\.git\
目录 0 2015-11-22 09:56 __MACOSX\CoreDataTest\.git\info\
文件 171 2015-11-09 21:53 __MACOSX\CoreDataTest\.git\info\._exclude
目录 0 2015-11-10 07:55 CoreDataTest\.git\logs\
文件 173 2015-11-09 21:53 CoreDataTest\.git\logs\HEAD
目录 0 2015-11-10 07:55 CoreDataTest\.git\logs\refs\
目录 0 2015-11-10 07:55 CoreDataTest\.git\logs\refs\heads\
文件 173 2015-11-09 21:53 CoreDataTest\.git\logs\refs\heads\master
目录 0 2015-11-10 07:55 CoreDataTest\.git\ob
目录 0 2015-11-10 07:55 CoreDataTest\.git\ob
文件 53 2015-11-09 21:53 CoreDataTest\.git\ob
文件 164 2015-11-09 21:53 CoreDataTest\.git\ob
目录 0 2015-11-10 07:55 CoreDataTest\.git\ob
文件 161 2015-11-09 21:53 CoreDataTest\.git\ob
文件 306 2015-11-09 21:53 CoreDataTest\.git\ob
目录 0 2015-11-10 07:55 CoreDataTest\.git\ob
............此处省略153个文件信息
- 上一篇:IOS简易的成绩管理系统
- 下一篇:ROS+VLAN25条ADSL 多线拔号
相关资源
- IOS简易的成绩管理系统
- IOS计算器源码
- 关东升《iOS开发指南》第5版链接
- TDOA positioning in NLOS scenarios by particle
- 基于NIOSII处理器的数字钟设计
- 蓝宝石RX580 8G 白金版BIOS 镁光 O50版本
- QueryTaskDemo
- iOS 图片剪裁demo
- 联想启天M6900原版BIOS
- sopc开发的
- 苹果企业证书安装
- displayout免付费版
- iOS图文混排模仿新浪微博
- Vue的js文件vue-resource.js以及Axios.js
- 仿网易新闻评论+模糊半透明图层
- OC 简单计算器(修改版)
- 按键精灵结合web群控安卓和ios手机端
- 迪兰战神RX470 4G海力士原版bios
- IOS源码大全1000套
- 盈通RX 480 8G D5 游戏高手 TOP 原厂1340高
- 计算机bios启动原理
- ios swift 在线音乐播放器
- 万能BIOS刷新升级工具895
- 迪兰恶魔RX588原厂BIOS1355-2000
- 可以拖拽的tableView
- iphone5sa1528ios9.01-9.21联通4G破解工具教
-
iOS贪吃蛇代码ob
jective-C - cydia eraser擦除器安装版,汉化,重新
- 惠普系微bios编辑工具
- 联想L-VK8M890G(M2VLE-RH)BIOS支持AMD520
评论
共有 条评论