Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use tileable image for blueprint background (+ add retina image)

  • Loading branch information...
commit a9aff61cf08d1ba374b6308ffc451aa9e7df08cc 1 parent 33ca6c4
Mark Pospesel authored
View
12 EnterTheMatrix.xcodeproj/project.pbxproj
@@ -41,7 +41,6 @@
4D6E91E51511F46D00B7D1D1 /* matrix_01@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D6E91E41511F46D00B7D1D1 /* matrix_01@2x.png */; };
4D6E91E81511F47900B7D1D1 /* matrix_04@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D6E91E61511F47900B7D1D1 /* matrix_04@2x.png */; };
4D6E91E91511F47900B7D1D1 /* matrix_03@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D6E91E71511F47900B7D1D1 /* matrix_03@2x.png */; };
- 4D6E91F01511FCEE00B7D1D1 /* Blueprint - iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D6E91EF1511FCEE00B7D1D1 /* Blueprint - iPad.png */; };
4D74961F151405CF00E6B879 /* Refresh.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D74961D151405CF00E6B879 /* Refresh.png */; };
4D7496251514077600E6B879 /* Refresh@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4D7496241514077600E6B879 /* Refresh@2x.png */; };
4D886B741568F27100F9A5CF /* Glyphish license.txt in Resources */ = {isa = PBXBuildFile; fileRef = 4D886B731568F27000F9A5CF /* Glyphish license.txt */; };
@@ -73,6 +72,8 @@
4DE4181914FDB6930007800B /* Bacon.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DE4181714FDB6930007800B /* Bacon.png */; };
4DE4181A14FDB6930007800B /* Bacon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DE4181814FDB6930007800B /* Bacon@2x.png */; };
4DE4182914FE3F0E0007800B /* InfoView.m in Sources */ = {isa = PBXBuildFile; fileRef = 4DE4182814FE3F0E0007800B /* InfoView.m */; };
+ 4DF4C9B615C69ECB003C21CA /* Blueprint.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DF4C9B415C69ECB003C21CA /* Blueprint.png */; };
+ 4DF4C9B715C69ECB003C21CA /* Blueprint@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 4DF4C9B515C69ECB003C21CA /* Blueprint@2x.png */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
@@ -117,7 +118,6 @@
4D6E91E41511F46D00B7D1D1 /* matrix_01@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "matrix_01@2x.png"; sourceTree = "<group>"; };
4D6E91E61511F47900B7D1D1 /* matrix_04@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "matrix_04@2x.png"; sourceTree = "<group>"; };
4D6E91E71511F47900B7D1D1 /* matrix_03@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "matrix_03@2x.png"; sourceTree = "<group>"; };
- 4D6E91EF1511FCEE00B7D1D1 /* Blueprint - iPad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Blueprint - iPad.png"; sourceTree = "<group>"; };
4D74961D151405CF00E6B879 /* Refresh.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Refresh.png; sourceTree = "<group>"; };
4D7496241514077600E6B879 /* Refresh@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Refresh@2x.png"; sourceTree = "<group>"; };
4D886B731568F27000F9A5CF /* Glyphish license.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = "Glyphish license.txt"; sourceTree = "<group>"; };
@@ -163,6 +163,8 @@
4DE4181814FDB6930007800B /* Bacon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Bacon@2x.png"; sourceTree = "<group>"; };
4DE4182714FE3F0D0007800B /* InfoView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InfoView.h; sourceTree = "<group>"; };
4DE4182814FE3F0E0007800B /* InfoView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = InfoView.m; sourceTree = "<group>"; };
+ 4DF4C9B415C69ECB003C21CA /* Blueprint.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Blueprint.png; sourceTree = "<group>"; };
+ 4DF4C9B515C69ECB003C21CA /* Blueprint@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Blueprint@2x.png"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -276,7 +278,8 @@
children = (
4D56F74B151DD22A0040C70D /* Dot@2x.png */,
4D56F74C151DD22A0040C70D /* Dot.png */,
- 4D6E91EF1511FCEE00B7D1D1 /* Blueprint - iPad.png */,
+ 4DF4C9B415C69ECB003C21CA /* Blueprint.png */,
+ 4DF4C9B515C69ECB003C21CA /* Blueprint@2x.png */,
4DBE7B7E14FD16DE008174E8 /* Lock.png */,
4DBE7B7F14FD16DE008174E8 /* Lock@2x.png */,
4DBE7B8414FD19E7008174E8 /* Unlock.png */,
@@ -397,7 +400,6 @@
4D6E91E51511F46D00B7D1D1 /* matrix_01@2x.png in Resources */,
4D6E91E81511F47900B7D1D1 /* matrix_04@2x.png in Resources */,
4D6E91E91511F47900B7D1D1 /* matrix_03@2x.png in Resources */,
- 4D6E91F01511FCEE00B7D1D1 /* Blueprint - iPad.png in Resources */,
4D74961F151405CF00E6B879 /* Refresh.png in Resources */,
4D7496251514077600E6B879 /* Refresh@2x.png in Resources */,
4D56F73E151DC5480040C70D /* Anchor.png in Resources */,
@@ -408,6 +410,8 @@
4D886B781568F2E300F9A5CF /* info-mini.png in Resources */,
4D886B791568F2E300F9A5CF /* info-mini@2x.png in Resources */,
4D886B7B1568F3DC00F9A5CF /* README.md in Resources */,
+ 4DF4C9B615C69ECB003C21CA /* Blueprint.png in Resources */,
+ 4DF4C9B715C69ECB003C21CA /* Blueprint@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN  EnterTheMatrix/Blueprint - iPad.png
Deleted file not rendered
View
BIN  EnterTheMatrix/Blueprint.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  EnterTheMatrix/Blueprint@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
13 EnterTheMatrix/CATransformController.m
@@ -11,9 +11,18 @@
@interface CATransformController ()
+@property (weak, nonatomic) IBOutlet UIView *backgroundView;
+
@end
@implementation CATransformController
+@synthesize backgroundView;
+
+- (void)viewDidLoad
+{
+ [super viewDidLoad];
+ [self.backgroundView setBackgroundColor:[[UIColor colorWithPatternImage:[UIImage imageNamed:@"Blueprint"]] colorWithAlphaComponent:0.5]];
+}
#pragma mark - Property
@@ -27,4 +36,8 @@ - (NSString *)imageName
return @"matrix_01";
}
+- (void)viewDidUnload {
+ [self setBackgroundView:nil];
+ [super viewDidUnload];
+}
@end
View
1  EnterTheMatrix/InfoView.m
@@ -31,6 +31,7 @@ - (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
+ [self.view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"Blueprint"]]];
}
- (void)viewDidUnload
View
19 EnterTheMatrix/en.lproj/MainStoryboard_iPad.storyboard
@@ -1,9 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="1.1" toolsVersion="2182" systemVersion="11E53" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="4">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2549" systemVersion="11E2620" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" initialViewController="4">
<dependencies>
<deployment defaultVersion="1296" identifier="iOS"/>
- <development defaultVersion="4200" identifier="xcode"/>
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1181"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1498"/>
</dependencies>
<scenes>
<!--Transform Table-->
@@ -628,10 +627,6 @@
<rect key="frame" x="0.0" y="20" width="320" height="832"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
- <imageView userInteractionEnabled="NO" contentMode="center" image="Blueprint - iPad.png" id="l59-lt-H38">
- <rect key="frame" x="0.0" y="0.0" width="320" height="832"/>
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </imageView>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" editable="NO" textAlignment="center" id="N2c-aD-ioZ">
<rect key="frame" x="10" y="10" width="300" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
@@ -716,10 +711,11 @@ www.glyphish.com</string>
<rect key="frame" x="0.0" y="20" width="768" height="955"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
- <imageView userInteractionEnabled="NO" alpha="0.5" contentMode="center" image="Blueprint - iPad.png" id="cpg-He-fYT">
+ <view contentMode="scaleToFill" id="7Al-1V-cm3">
<rect key="frame" x="0.0" y="44" width="768" height="911"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
- </imageView>
+ <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
+ </view>
<toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="xz3-fS-ToR">
<rect key="frame" x="0.0" y="0.0" width="768" height="44"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
@@ -752,6 +748,7 @@ www.glyphish.com</string>
</view>
<tabBarItem key="tabBarItem" title="CATransform3D" image="Sword.png" id="6"/>
<connections>
+ <outlet property="backgroundView" destination="7Al-1V-cm3" id="NnM-Q5-Vhe"/>
<outlet property="toolbar" destination="xz3-fS-ToR" id="7Fj-Ry-5I7"/>
</connections>
</viewController>
@@ -1638,7 +1635,6 @@ www.glyphish.com</string>
<resources>
<image name="Anchor.png" width="28" height="29"/>
<image name="Bacon.png" width="21" height="29"/>
- <image name="Blueprint - iPad.png" width="1024" height="1024"/>
<image name="Book.png" width="18" height="26"/>
<image name="Ghost.png" width="20" height="24"/>
<image name="Key.png" width="26" height="26"/>
@@ -1677,6 +1673,9 @@ www.glyphish.com</string>
</class>
<class className="CATransformController" superclassName="TransformController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/CATransformController.h"/>
+ <relationships>
+ <relationship kind="outlet" name="backgroundView" candidateClass="UIView"/>
+ </relationships>
</class>
<class className="CGAffineController" superclassName="TransformController">
<source key="sourceIdentifier" type="project" relativePath="./Classes/CGAffineController.h"/>
Please sign in to comment.
Something went wrong with that request. Please try again.