Skip to content

Commit cd39be5

Browse files
author
JummyHuang
committed
add readme.md
1 parent b8914ec commit cd39be5

File tree

105 files changed

+12032
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+12032
-2
lines changed

Currency.xcodeproj/project.pbxproj

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
/* Begin PBXBuildFile section */
1010
264102131B6477E600CEF7D1 /* AllCurrencyTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 264102121B6477E600CEF7D1 /* AllCurrencyTableViewController.swift */; };
1111
26660CB11B68FA9F00E223F3 /* AllCurrencyTableViewDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26660CB01B68FA9F00E223F3 /* AllCurrencyTableViewDelegate.swift */; };
12+
26660CB31B69274000E223F3 /* DownloadCurrencyDataFromYahooFinanceAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26660CB21B69274000E223F3 /* DownloadCurrencyDataFromYahooFinanceAPI.swift */; };
1213
26E14DF61B5F221600213750 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26E14DF51B5F221600213750 /* AppDelegate.swift */; };
1314
26E14DFB1B5F221600213750 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 26E14DF91B5F221600213750 /* Main.storyboard */; };
1415
26E14DFD1B5F221600213750 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 26E14DFC1B5F221600213750 /* Images.xcassets */; };
1516
26E14E001B5F221600213750 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 26E14DFE1B5F221600213750 /* LaunchScreen.xib */; };
1617
26E14E0C1B5F221600213750 /* CurrencyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26E14E0B1B5F221600213750 /* CurrencyTests.swift */; };
1718
26E14E161B5F2DD300213750 /* CurrencyItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26E14E151B5F2DD300213750 /* CurrencyItem.swift */; };
1819
26E14E181B5FEA9100213750 /* mainTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26E14E171B5FEA9100213750 /* mainTableViewController.swift */; };
20+
9156124514F3580D837EC7D7 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C56DB86DDB1A5585EFE551DE /* libPods.a */; };
1921
/* End PBXBuildFile section */
2022

2123
/* Begin PBXContainerItemProxy section */
@@ -31,6 +33,7 @@
3133
/* Begin PBXFileReference section */
3234
264102121B6477E600CEF7D1 /* AllCurrencyTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AllCurrencyTableViewController.swift; sourceTree = "<group>"; };
3335
26660CB01B68FA9F00E223F3 /* AllCurrencyTableViewDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AllCurrencyTableViewDelegate.swift; sourceTree = "<group>"; };
36+
26660CB21B69274000E223F3 /* DownloadCurrencyDataFromYahooFinanceAPI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DownloadCurrencyDataFromYahooFinanceAPI.swift; sourceTree = "<group>"; };
3437
26E14DF01B5F221600213750 /* Currency.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Currency.app; sourceTree = BUILT_PRODUCTS_DIR; };
3538
26E14DF41B5F221600213750 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3639
26E14DF51B5F221600213750 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
@@ -42,13 +45,17 @@
4245
26E14E0B1B5F221600213750 /* CurrencyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CurrencyTests.swift; sourceTree = "<group>"; };
4346
26E14E151B5F2DD300213750 /* CurrencyItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CurrencyItem.swift; sourceTree = "<group>"; };
4447
26E14E171B5FEA9100213750 /* mainTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = mainTableViewController.swift; sourceTree = "<group>"; };
48+
AA542A2A22448BDBF282BA8C /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
49+
B8F7B59ED2F3B5C7710D8D2F /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
50+
C56DB86DDB1A5585EFE551DE /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
4551
/* End PBXFileReference section */
4652

4753
/* Begin PBXFrameworksBuildPhase section */
4854
26E14DED1B5F221600213750 /* Frameworks */ = {
4955
isa = PBXFrameworksBuildPhase;
5056
buildActionMask = 2147483647;
5157
files = (
58+
9156124514F3580D837EC7D7 /* libPods.a in Frameworks */,
5259
);
5360
runOnlyForDeploymentPostprocessing = 0;
5461
};
@@ -62,12 +69,23 @@
6269
/* End PBXFrameworksBuildPhase section */
6370

6471
/* Begin PBXGroup section */
72+
117F0BBF6A92A1DFD8955A9B /* Pods */ = {
73+
isa = PBXGroup;
74+
children = (
75+
AA542A2A22448BDBF282BA8C /* Pods.debug.xcconfig */,
76+
B8F7B59ED2F3B5C7710D8D2F /* Pods.release.xcconfig */,
77+
);
78+
name = Pods;
79+
sourceTree = "<group>";
80+
};
6581
26E14DE71B5F221600213750 = {
6682
isa = PBXGroup;
6783
children = (
6884
26E14DF21B5F221600213750 /* Currency */,
6985
26E14E081B5F221600213750 /* CurrencyTests */,
7086
26E14DF11B5F221600213750 /* Products */,
87+
117F0BBF6A92A1DFD8955A9B /* Pods */,
88+
F81DE93CBA1EF80D476E166C /* Frameworks */,
7189
);
7290
sourceTree = "<group>";
7391
};
@@ -85,6 +103,7 @@
85103
children = (
86104
26E14DF51B5F221600213750 /* AppDelegate.swift */,
87105
26E14E171B5FEA9100213750 /* mainTableViewController.swift */,
106+
26660CB21B69274000E223F3 /* DownloadCurrencyDataFromYahooFinanceAPI.swift */,
88107
26E14E151B5F2DD300213750 /* CurrencyItem.swift */,
89108
26E14DF91B5F221600213750 /* Main.storyboard */,
90109
264102121B6477E600CEF7D1 /* AllCurrencyTableViewController.swift */,
@@ -121,16 +140,26 @@
121140
name = "Supporting Files";
122141
sourceTree = "<group>";
123142
};
143+
F81DE93CBA1EF80D476E166C /* Frameworks */ = {
144+
isa = PBXGroup;
145+
children = (
146+
C56DB86DDB1A5585EFE551DE /* libPods.a */,
147+
);
148+
name = Frameworks;
149+
sourceTree = "<group>";
150+
};
124151
/* End PBXGroup section */
125152

126153
/* Begin PBXNativeTarget section */
127154
26E14DEF1B5F221600213750 /* Currency */ = {
128155
isa = PBXNativeTarget;
129156
buildConfigurationList = 26E14E0F1B5F221600213750 /* Build configuration list for PBXNativeTarget "Currency" */;
130157
buildPhases = (
158+
576D43FF1382AA0F4683CB91 /* Check Pods Manifest.lock */,
131159
26E14DEC1B5F221600213750 /* Sources */,
132160
26E14DED1B5F221600213750 /* Frameworks */,
133161
26E14DEE1B5F221600213750 /* Resources */,
162+
E11CEA031E350ED586E29E10 /* Copy Pods Resources */,
134163
);
135164
buildRules = (
136165
);
@@ -217,6 +246,39 @@
217246
};
218247
/* End PBXResourcesBuildPhase section */
219248

249+
/* Begin PBXShellScriptBuildPhase section */
250+
576D43FF1382AA0F4683CB91 /* Check Pods Manifest.lock */ = {
251+
isa = PBXShellScriptBuildPhase;
252+
buildActionMask = 2147483647;
253+
files = (
254+
);
255+
inputPaths = (
256+
);
257+
name = "Check Pods Manifest.lock";
258+
outputPaths = (
259+
);
260+
runOnlyForDeploymentPostprocessing = 0;
261+
shellPath = /bin/sh;
262+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
263+
showEnvVarsInLog = 0;
264+
};
265+
E11CEA031E350ED586E29E10 /* Copy Pods Resources */ = {
266+
isa = PBXShellScriptBuildPhase;
267+
buildActionMask = 2147483647;
268+
files = (
269+
);
270+
inputPaths = (
271+
);
272+
name = "Copy Pods Resources";
273+
outputPaths = (
274+
);
275+
runOnlyForDeploymentPostprocessing = 0;
276+
shellPath = /bin/sh;
277+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
278+
showEnvVarsInLog = 0;
279+
};
280+
/* End PBXShellScriptBuildPhase section */
281+
220282
/* Begin PBXSourcesBuildPhase section */
221283
26E14DEC1B5F221600213750 /* Sources */ = {
222284
isa = PBXSourcesBuildPhase;
@@ -225,6 +287,7 @@
225287
26E14E181B5FEA9100213750 /* mainTableViewController.swift in Sources */,
226288
26E14DF61B5F221600213750 /* AppDelegate.swift in Sources */,
227289
264102131B6477E600CEF7D1 /* AllCurrencyTableViewController.swift in Sources */,
290+
26660CB31B69274000E223F3 /* DownloadCurrencyDataFromYahooFinanceAPI.swift in Sources */,
228291
26E14E161B5F2DD300213750 /* CurrencyItem.swift in Sources */,
229292
26660CB11B68FA9F00E223F3 /* AllCurrencyTableViewDelegate.swift in Sources */,
230293
);
@@ -351,6 +414,7 @@
351414
};
352415
26E14E101B5F221600213750 /* Debug */ = {
353416
isa = XCBuildConfiguration;
417+
baseConfigurationReference = AA542A2A22448BDBF282BA8C /* Pods.debug.xcconfig */;
354418
buildSettings = {
355419
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
356420
INFOPLIST_FILE = Currency/Info.plist;
@@ -361,6 +425,7 @@
361425
};
362426
26E14E111B5F221600213750 /* Release */ = {
363427
isa = XCBuildConfiguration;
428+
baseConfigurationReference = B8F7B59ED2F3B5C7710D8D2F /* Pods.release.xcconfig */;
364429
buildSettings = {
365430
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
366431
INFOPLIST_FILE = Currency/Info.plist;

Currency.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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>IDESourceControlProjectFavoriteDictionaryKey</key>
6+
<false/>
7+
<key>IDESourceControlProjectIdentifier</key>
8+
<string>957A6F3D-E911-4836-AF15-4EC8D13436D0</string>
9+
<key>IDESourceControlProjectName</key>
10+
<string>Currency</string>
11+
<key>IDESourceControlProjectOriginsDictionary</key>
12+
<dict>
13+
<key>3D0FE4354A7F4D669A5C80A1E4871340F88D6D03</key>
14+
<string>https://github.com/JummyHuang/Currency.git</string>
15+
</dict>
16+
<key>IDESourceControlProjectPath</key>
17+
<string>Currency.xcworkspace</string>
18+
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
19+
<dict>
20+
<key>3D0FE4354A7F4D669A5C80A1E4871340F88D6D03</key>
21+
<string>..</string>
22+
</dict>
23+
<key>IDESourceControlProjectURL</key>
24+
<string>https://github.com/JummyHuang/Currency.git</string>
25+
<key>IDESourceControlProjectVersion</key>
26+
<integer>111</integer>
27+
<key>IDESourceControlProjectWCCIdentifier</key>
28+
<string>3D0FE4354A7F4D669A5C80A1E4871340F88D6D03</string>
29+
<key>IDESourceControlProjectWCConfigurations</key>
30+
<array>
31+
<dict>
32+
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
33+
<string>public.vcs.git</string>
34+
<key>IDESourceControlWCCIdentifierKey</key>
35+
<string>3D0FE4354A7F4D669A5C80A1E4871340F88D6D03</string>
36+
<key>IDESourceControlWCCName</key>
37+
<string>Currency</string>
38+
</dict>
39+
</array>
40+
</dict>
41+
</plist>

Currency/AllCurrencyTableViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class AllCurrencyTableViewController: UITableViewController {
2020
let currency: CurrencyItem = CurrencyItem(shortName: "HKD", fullName: "港币", price: 7.0)
2121
allCurrencyItemList.addObject(currency)
2222

23-
let currencyItem: CurrencyItem = CurrencyItem(shortName: "CNY", fullName: "人名币", price: 6.20)
23+
let currencyItem: CurrencyItem = CurrencyItem(shortName: "CNY", fullName: "人民币", price: 6.20)
2424
allCurrencyItemList.addObject(currencyItem)
2525

2626

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// DownloadCurrencyDataFromYahooFinanceAPI.swift
3+
// Currency
4+
//
5+
// Created by 黄俊明 on 15/7/29.
6+
// Copyright (c) 2015年 CS193p. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
class DownloadCurrencyDataFromYahooFinanceAPI {
12+
13+
14+
}

Currency/mainTableViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class mainTableViewController: UITableViewController, UITextFieldDelegate, AllCu
3535
override func viewDidLoad() {
3636
super.viewDidLoad()
3737

38-
let currencyItem: CurrencyItem = CurrencyItem(shortName: "CNY", fullName: "人名币", price: 6.20)
38+
let currencyItem: CurrencyItem = CurrencyItem(shortName: "CNY", fullName: "人民币", price: 6.20)
3939
currencyItemsList.addObject(currencyItem)
4040
baseMoneyInUSD = 100 / currencyItem.currencyPrice
4141

Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://github.com/CocoaPods/Specs.git'
2+
platform :ios, '7.0'
3+
pod 'AFNetworking', '~> 2.5'

Podfile.lock

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
PODS:
2+
- AFNetworking (2.5.4):
3+
- AFNetworking/NSURLConnection (= 2.5.4)
4+
- AFNetworking/NSURLSession (= 2.5.4)
5+
- AFNetworking/Reachability (= 2.5.4)
6+
- AFNetworking/Security (= 2.5.4)
7+
- AFNetworking/Serialization (= 2.5.4)
8+
- AFNetworking/UIKit (= 2.5.4)
9+
- AFNetworking/NSURLConnection (2.5.4):
10+
- AFNetworking/Reachability
11+
- AFNetworking/Security
12+
- AFNetworking/Serialization
13+
- AFNetworking/NSURLSession (2.5.4):
14+
- AFNetworking/Reachability
15+
- AFNetworking/Security
16+
- AFNetworking/Serialization
17+
- AFNetworking/Reachability (2.5.4)
18+
- AFNetworking/Security (2.5.4)
19+
- AFNetworking/Serialization (2.5.4)
20+
- AFNetworking/UIKit (2.5.4):
21+
- AFNetworking/NSURLConnection
22+
- AFNetworking/NSURLSession
23+
24+
DEPENDENCIES:
25+
- AFNetworking (~> 2.5)
26+
27+
SPEC CHECKSUMS:
28+
AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e
29+
30+
COCOAPODS: 0.36.3

Pods/AFNetworking/AFNetworking/AFHTTPRequestOperation.h

Lines changed: 66 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)