Skip to content

Commit 7f52c5d

Browse files
author
teejay
committed
Prettier demo.
1 parent fb382bf commit 7f52c5d

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

FlickBall/FlickBall.xcodeproj/project.pbxproj

+8
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
37B52B6D17F5E0D000BB9319 /* UIImage+Rotate.m in Sources */ = {isa = PBXBuildFile; fileRef = 37B52B6417F5E0D000BB9319 /* UIImage+Rotate.m */; };
3434
37B52B6E17F5E0D000BB9319 /* FLBGeometry.m in Sources */ = {isa = PBXBuildFile; fileRef = 37B52B6617F5E0D000BB9319 /* FLBGeometry.m */; };
3535
37B52B6F17F5E0D000BB9319 /* MFLBoundaryPreview.m in Sources */ = {isa = PBXBuildFile; fileRef = 37B52B6917F5E0D000BB9319 /* MFLBoundaryPreview.m */; };
36+
37B52B7117F5E1E800BB9319 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 37B52B7017F5E1E800BB9319 /* [email protected] */; };
37+
37B52B7317F5E23B00BB9319 /* apple_linen.png in Resources */ = {isa = PBXBuildFile; fileRef = 37B52B7217F5E23B00BB9319 /* apple_linen.png */; };
3638
/* End PBXBuildFile section */
3739

3840
/* Begin PBXFileReference section */
@@ -72,6 +74,8 @@
7274
37B52B6617F5E0D000BB9319 /* FLBGeometry.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FLBGeometry.m; sourceTree = "<group>"; };
7375
37B52B6817F5E0D000BB9319 /* MFLBoundaryPreview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MFLBoundaryPreview.h; sourceTree = "<group>"; };
7476
37B52B6917F5E0D000BB9319 /* MFLBoundaryPreview.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MFLBoundaryPreview.m; sourceTree = "<group>"; };
77+
37B52B7017F5E1E800BB9319 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
78+
37B52B7217F5E23B00BB9319 /* apple_linen.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = apple_linen.png; sourceTree = "<group>"; };
7579
/* End PBXFileReference section */
7680

7781
/* Begin PBXFrameworksBuildPhase section */
@@ -103,6 +107,8 @@
103107
3703617A17A74B1A008358BD /* Resources */ = {
104108
isa = PBXGroup;
105109
children = (
110+
37B52B7017F5E1E800BB9319 /* [email protected] */,
111+
37B52B7217F5E23B00BB9319 /* apple_linen.png */,
106112
37579C6D17F4BF380057EAD3 /* star_boundary.png */,
107113
37579C6E17F4BF380057EAD3 /* [email protected] */,
108114
3703617B17A74B1A008358BD /* [email protected] */,
@@ -267,12 +273,14 @@
267273
3703618617A74B1A008358BD /* [email protected] in Resources */,
268274
37579C6F17F4BF380057EAD3 /* star_boundary.png in Resources */,
269275
3703618C17A74B1A008358BD /* [email protected] in Resources */,
276+
37B52B7117F5E1E800BB9319 /* [email protected] in Resources */,
270277
3773BC20179E3070003B1C0B /* InfoPlist.strings in Resources */,
271278
3703618817A74B1A008358BD /* [email protected] in Resources */,
272279
37579C7017F4BF380057EAD3 /* [email protected] in Resources */,
273280
3703618D17A74B1A008358BD /* FlickBall-Info.plist in Resources */,
274281
3703618B17A74B1A008358BD /* pokeball_phone.png in Resources */,
275282
3703618717A74B1A008358BD /* Default.png in Resources */,
283+
37B52B7317F5E23B00BB9319 /* apple_linen.png in Resources */,
276284
3773BC32179E3070003B1C0B /* FLBViewController_iPhone.xib in Resources */,
277285
3703618917A74B1A008358BD /* pokeball.png in Resources */,
278286
3703618A17A74B1A008358BD /* [email protected] in Resources */,

FlickBall/FlickBall/Gravity/FLBViewController.m

+2-7
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ @implementation FLBViewController
2323

2424
- (void)viewDidLoad
2525
{
26+
[self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"apple_linen"]]];
27+
2628
CGImageRef cgImage = [self.flickViews[0] image].CGImage;
2729
UIBezierPath *ballPath = [[[PathBuilder alloc] initWithMask:cgImage] path];
2830
UIImage *ballPathImage = [ballPath strokeImageWithColor:[UIColor blackColor]];
@@ -61,13 +63,6 @@ - (void)basicsSetup
6163
[self.animator addBehavior:collisionBehavior];
6264

6365
[self.view setNeedsDisplay];
64-
/* MFLAlphaCollision *starCollision = [[MFLAlphaCollision alloc] initWithImageView:self.starBoundaryImage forIdentifier:@"starBoundary"];
65-
66-
[self.flickViews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
67-
[starCollision addItem:obj];
68-
}];
69-
[starCollision setCollisionMode:UICollisionBehaviorModeBoundaries];
70-
[self.animator addBehavior:starCollision];*/
7166

7267
}
7368

Loading
Loading

FlickBall/FlickBall/en.lproj/FLBViewController_iPad.xib

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
262262
</imageView>
263263
</subviews>
264-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
264+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
265265
<gestureRecognizers/>
266266
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" statusBarStyle="blackOpaque"/>
267267
<connections>

0 commit comments

Comments
 (0)