-
大小: 45KB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2021-06-01
- 語(yǔ)言: 其他
- 標(biāo)簽: iphone??ios??objective-c??學(xué)生信息??管理系統(tǒng)??
資源簡(jiǎn)介
使用Objective-C實(shí)現(xiàn)的學(xué)生信息管理系統(tǒng),底層使用CoreData管理數(shù)據(jù)。可下載直接運(yùn)行。

代碼片段和文件信息
//
//??AppDelegate.m
//??StudentMIS
//
//??Created?by?楊木?on?1/6/15.
//??Copyright?(c)?2015?楊木.?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?“blog.csdn.net-yangmuted.StudentMIS“?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?=?[[NSBun
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-01-06?13:01??StudentMIS\
?????目錄???????????0??2015-01-07?13:45??StudentMIS\StudentMIS\
?????文件?????????632??2015-01-06?13:01??StudentMIS\StudentMIS\AppDelegate.h
?????目錄???????????0??2015-01-08?08:56??__MACOSX\
?????目錄???????????0??2015-01-08?08:56??__MACOSX\StudentMIS\
?????目錄???????????0??2015-01-08?08:56??__MACOSX\StudentMIS\StudentMIS\
?????文件?????????171??2015-01-06?13:01??__MACOSX\StudentMIS\StudentMIS\._AppDelegate.h
?????文件????????6165??2015-01-06?13:01??StudentMIS\StudentMIS\AppDelegate.m
?????文件?????????171??2015-01-06?13:01??__MACOSX\StudentMIS\StudentMIS\._AppDelegate.m
?????目錄???????????0??2015-01-07?13:34??StudentMIS\StudentMIS\ba
?????文件????????3701??2015-01-06?13:01??StudentMIS\StudentMIS\ba
?????目錄???????????0??2015-01-08?08:56??__MACOSX\StudentMIS\StudentMIS\ba
?????文件?????????171??2015-01-06?13:01??__MACOSX\StudentMIS\StudentMIS\ba
?????文件???????29640??2015-01-07?13:34??StudentMIS\StudentMIS\ba
?????目錄???????????0??2015-01-06?13:01??StudentMIS\StudentMIS\Images.xcassets\
?????目錄???????????0??2015-01-06?13:01??StudentMIS\StudentMIS\Images.xcassets\AppIcon.appiconset\
?????文件?????????585??2015-01-06?13:01??StudentMIS\StudentMIS\Images.xcassets\AppIcon.appiconset\Contents.json
?????目錄???????????0??2015-01-08?08:56??__MACOSX\StudentMIS\StudentMIS\Images.xcassets\
?????目錄???????????0??2015-01-08?08:56??__MACOSX\StudentMIS\StudentMIS\Images.xcassets\AppIcon.appiconset\
?????文件?????????171??2015-01-06?13:01??__MACOSX\StudentMIS\StudentMIS\Images.xcassets\AppIcon.appiconset\._Contents.json
?????文件????????1234??2015-01-06?13:01??StudentMIS\StudentMIS\Info.plist
?????文件?????????328??2015-01-06?13:01??StudentMIS\StudentMIS\main.m
?????文件?????????171??2015-01-06?13:01??__MACOSX\StudentMIS\StudentMIS\._main.m
?????文件?????????536??2015-01-07?13:10??StudentMIS\StudentMIS\Student.h
?????文件?????????171??2015-01-07?13:10??__MACOSX\StudentMIS\StudentMIS\._Student.h
?????文件?????????293??2015-01-07?13:10??StudentMIS\StudentMIS\Student.m
?????文件?????????171??2015-01-07?13:10??__MACOSX\StudentMIS\StudentMIS\._Student.m
?????目錄???????????0??2015-01-06?13:44??StudentMIS\StudentMIS\StudentMIS.xcdatamodeld\
?????文件?????????263??2015-01-06?13:01??StudentMIS\StudentMIS\StudentMIS.xcdatamodeld\.xccurrentversion
?????目錄???????????0??2015-01-06?13:44??StudentMIS\StudentMIS\StudentMIS.xcdatamodeld\StudentMIS.xcdatamodel\
?????文件????????1832??2015-01-06?13:44??StudentMIS\StudentMIS\StudentMIS.xcdatamodeld\StudentMIS.xcdatamodel\contents
............此處省略29個(gè)文件信息
評(píng)論
共有 條評(píng)論