Skip to content

Commit 7746095

Browse files
committed
初始状态
1 parent 7381fcd commit 7746095

56 files changed

Lines changed: 3 additions & 9852 deletions

Some content is hidden

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

GraphicsPerformance-Starter/GraphicsPerformance-Starter.xcodeproj/project.pbxproj

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
0993ED2E8A62E9F241DE4430 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 345F0DD4F052EFB8DB67F168 /* Pods.framework */; };
1110
9BEA05201C50EFAC0075E954 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BEA051F1C50EFAC0075E954 /* AppDelegate.swift */; };
1211
9BEA05221C50EFAC0075E954 /* FirstViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BEA05211C50EFAC0075E954 /* FirstViewController.swift */; };
1312
9BEA05241C50EFAC0075E954 /* SecondViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9BEA05231C50EFAC0075E954 /* SecondViewController.swift */; };
@@ -37,8 +36,6 @@
3736
/* End PBXContainerItemProxy section */
3837

3938
/* Begin PBXFileReference section */
40-
345F0DD4F052EFB8DB67F168 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
41-
950C6746FF5C753469785083 /* 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>"; };
4239
9BEA051C1C50EFAC0075E954 /* GraphicsPerformance-Starter.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "GraphicsPerformance-Starter.app"; sourceTree = BUILT_PRODUCTS_DIR; };
4340
9BEA051F1C50EFAC0075E954 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4441
9BEA05211C50EFAC0075E954 /* FirstViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstViewController.swift; sourceTree = "<group>"; };
@@ -54,15 +51,13 @@
5451
9BEA05411C50EFAC0075E954 /* GraphicsPerformance_StarterUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GraphicsPerformance_StarterUITests.swift; sourceTree = "<group>"; };
5552
9BEA05431C50EFAC0075E954 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5653
9BEA05511C50F5870075E954 /* CustomTableCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomTableCell.swift; sourceTree = "<group>"; };
57-
D27843F4F27F5C897321B774 /* 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>"; };
5854
/* End PBXFileReference section */
5955

6056
/* Begin PBXFrameworksBuildPhase section */
6157
9BEA05191C50EFAC0075E954 /* Frameworks */ = {
6258
isa = PBXFrameworksBuildPhase;
6359
buildActionMask = 2147483647;
6460
files = (
65-
0993ED2E8A62E9F241DE4430 /* Pods.framework in Frameworks */,
6661
);
6762
runOnlyForDeploymentPostprocessing = 0;
6863
};
@@ -86,7 +81,6 @@
8681
14AF43E9CB32269DE0EB83B3 /* Frameworks */ = {
8782
isa = PBXGroup;
8883
children = (
89-
345F0DD4F052EFB8DB67F168 /* Pods.framework */,
9084
);
9185
name = Frameworks;
9286
sourceTree = "<group>";
@@ -98,7 +92,6 @@
9892
9BEA05351C50EFAC0075E954 /* GraphicsPerformance-StarterTests */,
9993
9BEA05401C50EFAC0075E954 /* GraphicsPerformance-StarterUITests */,
10094
9BEA051D1C50EFAC0075E954 /* Products */,
101-
9F2FE93399BD881EE04F109E /* Pods */,
10295
14AF43E9CB32269DE0EB83B3 /* Frameworks */,
10396
);
10497
sourceTree = "<group>";
@@ -146,28 +139,16 @@
146139
path = "GraphicsPerformance-StarterUITests";
147140
sourceTree = "<group>";
148141
};
149-
9F2FE93399BD881EE04F109E /* Pods */ = {
150-
isa = PBXGroup;
151-
children = (
152-
950C6746FF5C753469785083 /* Pods.debug.xcconfig */,
153-
D27843F4F27F5C897321B774 /* Pods.release.xcconfig */,
154-
);
155-
name = Pods;
156-
sourceTree = "<group>";
157-
};
158142
/* End PBXGroup section */
159143

160144
/* Begin PBXNativeTarget section */
161145
9BEA051B1C50EFAC0075E954 /* GraphicsPerformance-Starter */ = {
162146
isa = PBXNativeTarget;
163147
buildConfigurationList = 9BEA05461C50EFAC0075E954 /* Build configuration list for PBXNativeTarget "GraphicsPerformance-Starter" */;
164148
buildPhases = (
165-
FA6D73B7BBE2C9E75D037E8A /* Check Pods Manifest.lock */,
166149
9BEA05181C50EFAC0075E954 /* Sources */,
167150
9BEA05191C50EFAC0075E954 /* Frameworks */,
168151
9BEA051A1C50EFAC0075E954 /* Resources */,
169-
44EF7DD39C1B9A014C247833 /* Embed Pods Frameworks */,
170-
6F2ADEF09611900B6CA6BA78 /* Copy Pods Resources */,
171152
);
172153
buildRules = (
173154
);
@@ -287,54 +268,6 @@
287268
};
288269
/* End PBXResourcesBuildPhase section */
289270

290-
/* Begin PBXShellScriptBuildPhase section */
291-
44EF7DD39C1B9A014C247833 /* Embed Pods Frameworks */ = {
292-
isa = PBXShellScriptBuildPhase;
293-
buildActionMask = 2147483647;
294-
files = (
295-
);
296-
inputPaths = (
297-
);
298-
name = "Embed Pods Frameworks";
299-
outputPaths = (
300-
);
301-
runOnlyForDeploymentPostprocessing = 0;
302-
shellPath = /bin/sh;
303-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
304-
showEnvVarsInLog = 0;
305-
};
306-
6F2ADEF09611900B6CA6BA78 /* Copy Pods Resources */ = {
307-
isa = PBXShellScriptBuildPhase;
308-
buildActionMask = 2147483647;
309-
files = (
310-
);
311-
inputPaths = (
312-
);
313-
name = "Copy Pods Resources";
314-
outputPaths = (
315-
);
316-
runOnlyForDeploymentPostprocessing = 0;
317-
shellPath = /bin/sh;
318-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
319-
showEnvVarsInLog = 0;
320-
};
321-
FA6D73B7BBE2C9E75D037E8A /* Check Pods Manifest.lock */ = {
322-
isa = PBXShellScriptBuildPhase;
323-
buildActionMask = 2147483647;
324-
files = (
325-
);
326-
inputPaths = (
327-
);
328-
name = "Check Pods Manifest.lock";
329-
outputPaths = (
330-
);
331-
runOnlyForDeploymentPostprocessing = 0;
332-
shellPath = /bin/sh;
333-
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";
334-
showEnvVarsInLog = 0;
335-
};
336-
/* End PBXShellScriptBuildPhase section */
337-
338271
/* Begin PBXSourcesBuildPhase section */
339272
9BEA05181C50EFAC0075E954 /* Sources */ = {
340273
isa = PBXSourcesBuildPhase;
@@ -481,7 +414,6 @@
481414
};
482415
9BEA05471C50EFAC0075E954 /* Debug */ = {
483416
isa = XCBuildConfiguration;
484-
baseConfigurationReference = 950C6746FF5C753469785083 /* Pods.debug.xcconfig */;
485417
buildSettings = {
486418
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
487419
INFOPLIST_FILE = "GraphicsPerformance-Starter/Info.plist";
@@ -493,7 +425,6 @@
493425
};
494426
9BEA05481C50EFAC0075E954 /* Release */ = {
495427
isa = XCBuildConfiguration;
496-
baseConfigurationReference = D27843F4F27F5C897321B774 /* Pods.release.xcconfig */;
497428
buildSettings = {
498429
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
499430
INFOPLIST_FILE = "GraphicsPerformance-Starter/Info.plist";

GraphicsPerformance-Starter/GraphicsPerformance-Starter/Assets.xcassets/3.imageset/3.jpg renamed to GraphicsPerformance-Starter/GraphicsPerformance-Starter/Assets.xcassets/3.imageset/3.png

File renamed without changes.

GraphicsPerformance-Starter/GraphicsPerformance-Starter/Assets.xcassets/3.imageset/Contents.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
"images" : [
33
{
44
"idiom" : "universal",
5-
"filename" : "3.png",
65
"scale" : "1x"
76
},
87
{
98
"idiom" : "universal",
10-
"filename" : "3.jpg",
9+
"filename" : "3.png",
1110
"scale" : "2x"
1211
},
1312
{

GraphicsPerformance-Starter/GraphicsPerformance-Starter/CustomTableCell.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ class CustomTableCell: UITableViewCell {
1414

1515
override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
1616
super.init(style: style, reuseIdentifier: reuseIdentifier)
17-
// label.layer.shouldRasterize = true
18-
// imgView.layer.shadowColor = UIColor.blackColor().CGColor
19-
// imgView.layer.shadowOpacity = 1
20-
// imgView.layer.shadowRadius = 2
21-
// imgView.layer.shadowOffset = CGSizeMake(1, 1)
22-
// // 不加下面这句,Core Animation 会计算阴影形状,这需要离屏渲染,touch上fps掉到30
23-
// imgView.layer.shadowPath = UIBezierPath(rect: imgView.bounds).CGPath
24-
25-
26-
// label.backgroundColor = UIColor.whiteColor() // 不加这一行就会有blended layer
17+
label.layer.shouldRasterize = true
2718

2819
self.contentView.addSubview(imgView)
2920
self.contentView.addSubview(label)

GraphicsPerformance-Starter/GraphicsPerformance-Starter/FirstViewController.swift

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//
88

99
import UIKit
10-
import Alamofire
11-
import AlamofireImage
1210

1311

1412
class FirstViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@@ -36,22 +34,7 @@ class FirstViewController: UIViewController, UITableViewDelegate, UITableViewDat
3634
cell?.selectionStyle = .None
3735
}
3836
cell?.setupContent(String(imgArray[indexPath.row]), text: "This is a label")
39-
if indexPath.row == 1 {
40-
// let tiffPath = NSBundle.mainBundle().pathForResource("example", ofType: "jp2")
41-
// cell?.imgView.image = UIImage(data: NSData(contentsOfURL: NSURL(string: "http://images.bestswifter.com/UIKitPerformance/example.jp2")!)!)
42-
// Alamofire.request(.GET, "http://read.pudn.com/downloads151/sourcecode/graph/658130/JPEG/Codes/sw/out__.jpg")
43-
// .responseImage { response in
44-
// debugPrint(response)
45-
//
46-
// print(response.request)
47-
// print(response.response)
48-
// debugPrint(response.result)
49-
//
50-
// if let image = response.result.value {
51-
// cell?.imgView.image = image
52-
// }
53-
// }
54-
}
37+
5538
return cell!
5639
}
5740

GraphicsPerformance-Starter/Podfile.lock

Lines changed: 0 additions & 14 deletions
This file was deleted.

GraphicsPerformance-Starter/Pods/Alamofire/LICENSE

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)