Skip to content

Commit 0a999d5

Browse files
authored
Add files via upload
1 parent 60bd4db commit 0a999d5

40 files changed

+7633
-0
lines changed

JQFMDB.xcodeproj/project.pbxproj

Lines changed: 633 additions & 0 deletions
Large diffs are not rendered by default.

JQFMDB.xcodeproj/project.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Bucket
3+
type = "1"
4+
version = "2.0">
5+
</Bucket>
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0820"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "F34BAF951E71657C00DDF1C2"
18+
BuildableName = "JQFMDB.app"
19+
BlueprintName = "JQFMDB"
20+
ReferencedContainer = "container:JQFMDB.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "F34BAFB11E71657C00DDF1C2"
36+
BuildableName = "JQFMDBTests.xctest"
37+
BlueprintName = "JQFMDBTests"
38+
ReferencedContainer = "container:JQFMDB.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
<TestableReference
42+
skipped = "NO">
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "F34BAFBC1E71657C00DDF1C2"
46+
BuildableName = "JQFMDBUITests.xctest"
47+
BlueprintName = "JQFMDBUITests"
48+
ReferencedContainer = "container:JQFMDB.xcodeproj">
49+
</BuildableReference>
50+
</TestableReference>
51+
</Testables>
52+
<MacroExpansion>
53+
<BuildableReference
54+
BuildableIdentifier = "primary"
55+
BlueprintIdentifier = "F34BAF951E71657C00DDF1C2"
56+
BuildableName = "JQFMDB.app"
57+
BlueprintName = "JQFMDB"
58+
ReferencedContainer = "container:JQFMDB.xcodeproj">
59+
</BuildableReference>
60+
</MacroExpansion>
61+
<AdditionalOptions>
62+
</AdditionalOptions>
63+
</TestAction>
64+
<LaunchAction
65+
buildConfiguration = "Debug"
66+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
67+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
68+
launchStyle = "0"
69+
useCustomWorkingDirectory = "NO"
70+
ignoresPersistentStateOnLaunch = "NO"
71+
debugDocumentVersioning = "YES"
72+
debugServiceExtension = "internal"
73+
allowLocationSimulation = "YES">
74+
<BuildableProductRunnable
75+
runnableDebuggingMode = "0">
76+
<BuildableReference
77+
BuildableIdentifier = "primary"
78+
BlueprintIdentifier = "F34BAF951E71657C00DDF1C2"
79+
BuildableName = "JQFMDB.app"
80+
BlueprintName = "JQFMDB"
81+
ReferencedContainer = "container:JQFMDB.xcodeproj">
82+
</BuildableReference>
83+
</BuildableProductRunnable>
84+
<AdditionalOptions>
85+
</AdditionalOptions>
86+
</LaunchAction>
87+
<ProfileAction
88+
buildConfiguration = "Release"
89+
shouldUseLaunchSchemeArgsEnv = "YES"
90+
savedToolIdentifier = ""
91+
useCustomWorkingDirectory = "NO"
92+
debugDocumentVersioning = "YES">
93+
<BuildableProductRunnable
94+
runnableDebuggingMode = "0">
95+
<BuildableReference
96+
BuildableIdentifier = "primary"
97+
BlueprintIdentifier = "F34BAF951E71657C00DDF1C2"
98+
BuildableName = "JQFMDB.app"
99+
BlueprintName = "JQFMDB"
100+
ReferencedContainer = "container:JQFMDB.xcodeproj">
101+
</BuildableReference>
102+
</BuildableProductRunnable>
103+
</ProfileAction>
104+
<AnalyzeAction
105+
buildConfiguration = "Debug">
106+
</AnalyzeAction>
107+
<ArchiveAction
108+
buildConfiguration = "Release"
109+
revealArchiveInOrganizer = "YES">
110+
</ArchiveAction>
111+
</Scheme>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>JQFMDB.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>F34BAF951E71657C00DDF1C2</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
<key>F34BAFB11E71657C00DDF1C2</key>
21+
<dict>
22+
<key>primary</key>
23+
<true/>
24+
</dict>
25+
<key>F34BAFBC1E71657C00DDF1C2</key>
26+
<dict>
27+
<key>primary</key>
28+
<true/>
29+
</dict>
30+
</dict>
31+
</dict>
32+
</plist>

JQFMDB/AppDelegate.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// AppDelegate.h
3+
// JQFMDB
4+
//
5+
// Created by Joker on 17/3/9.
6+
// Copyright © 2017年 Joker. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
#import <CoreData/CoreData.h>
11+
12+
@interface AppDelegate : UIResponder <UIApplicationDelegate>
13+
14+
@property (strong, nonatomic) UIWindow *window;
15+
16+
@property (readonly, strong) NSPersistentContainer *persistentContainer;
17+
18+
- (void)saveContext;
19+
20+
21+
@end
22+

JQFMDB/AppDelegate.m

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
//
2+
// AppDelegate.m
3+
// JQFMDB
4+
//
5+
// Created by Joker on 17/3/9.
6+
// Copyright © 2017年 Joker. All rights reserved.
7+
//
8+
9+
#import "AppDelegate.h"
10+
11+
@interface AppDelegate ()
12+
13+
@end
14+
15+
@implementation AppDelegate
16+
17+
18+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
19+
// Override point for customization after application launch.
20+
return YES;
21+
}
22+
23+
24+
- (void)applicationWillResignActive:(UIApplication *)application {
25+
// 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.
26+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
27+
}
28+
29+
30+
- (void)applicationDidEnterBackground:(UIApplication *)application {
31+
// 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.
32+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
33+
}
34+
35+
36+
- (void)applicationWillEnterForeground:(UIApplication *)application {
37+
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
38+
}
39+
40+
41+
- (void)applicationDidBecomeActive:(UIApplication *)application {
42+
// 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.
43+
}
44+
45+
46+
- (void)applicationWillTerminate:(UIApplication *)application {
47+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
48+
// Saves changes in the application's managed object context before the application terminates.
49+
[self saveContext];
50+
}
51+
52+
53+
#pragma mark - Core Data stack
54+
55+
@synthesize persistentContainer = _persistentContainer;
56+
57+
- (NSPersistentContainer *)persistentContainer {
58+
// The persistent container for the application. This implementation creates and returns a container, having loaded the store for the application to it.
59+
@synchronized (self) {
60+
if (_persistentContainer == nil) {
61+
_persistentContainer = [[NSPersistentContainer alloc] initWithName:@"JQFMDB"];
62+
[_persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *storeDescription, NSError *error) {
63+
if (error != nil) {
64+
// Replace this implementation with code to handle the error appropriately.
65+
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
66+
67+
/*
68+
Typical reasons for an error here include:
69+
* The parent directory does not exist, cannot be created, or disallows writing.
70+
* The persistent store is not accessible, due to permissions or data protection when the device is locked.
71+
* The device is out of space.
72+
* The store could not be migrated to the current model version.
73+
Check the error message to determine what the actual problem was.
74+
*/
75+
NSLog(@"Unresolved error %@, %@", error, error.userInfo);
76+
abort();
77+
}
78+
}];
79+
}
80+
}
81+
82+
return _persistentContainer;
83+
}
84+
85+
#pragma mark - Core Data Saving support
86+
87+
- (void)saveContext {
88+
NSManagedObjectContext *context = self.persistentContainer.viewContext;
89+
NSError *error = nil;
90+
if ([context hasChanges] && ![context save:&error]) {
91+
// Replace this implementation with code to handle the error appropriately.
92+
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
93+
NSLog(@"Unresolved error %@, %@", error, error.userInfo);
94+
abort();
95+
}
96+
}
97+
98+
@end
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "29x29",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "29x29",
11+
"scale" : "3x"
12+
},
13+
{
14+
"idiom" : "iphone",
15+
"size" : "40x40",
16+
"scale" : "2x"
17+
},
18+
{
19+
"idiom" : "iphone",
20+
"size" : "40x40",
21+
"scale" : "3x"
22+
},
23+
{
24+
"idiom" : "iphone",
25+
"size" : "60x60",
26+
"scale" : "2x"
27+
},
28+
{
29+
"idiom" : "iphone",
30+
"size" : "60x60",
31+
"scale" : "3x"
32+
}
33+
],
34+
"info" : {
35+
"version" : 1,
36+
"author" : "xcode"
37+
}
38+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
5+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
6+
</dependencies>
7+
<scenes>
8+
<!--View Controller-->
9+
<scene sceneID="EHf-IW-A2E">
10+
<objects>
11+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
12+
<layoutGuides>
13+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
14+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
15+
</layoutGuides>
16+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
17+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
18+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
19+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
20+
</view>
21+
</viewController>
22+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
23+
</objects>
24+
<point key="canvasLocation" x="53" y="375"/>
25+
</scene>
26+
</scenes>
27+
</document>

0 commit comments

Comments
 (0)