Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adding example iOS app

  • Loading branch information...
commit c76dd50671777ce799a9dead0738b463675b1c06 1 parent d8d6de5
@kgn authored
View
15 Example/KGIOSAppDelegate.h
@@ -0,0 +1,15 @@
+//
+// KGIOSAppDelegate.h
+// KGNoiseEample
+//
+// Created by David Keegan on 9/11/12.
+// Copyright (c) 2012 David Keegan. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@interface KGIOSAppDelegate : UIResponder <UIApplicationDelegate>
+
+@property (strong, nonatomic) UIWindow *window;
+
+@end
View
28 Example/KGIOSAppDelegate.m
@@ -0,0 +1,28 @@
+//
+// KGIOSAppDelegate.m
+// KGNoiseEample
+//
+// Created by David Keegan on 9/11/12.
+// Copyright (c) 2012 David Keegan. All rights reserved.
+//
+
+#import "KGIOSAppDelegate.h"
+#import "KGNoise.h"
+
+@implementation KGIOSAppDelegate
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
+ self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
+ self.window.rootViewController = [[UIViewController alloc] init];
+
+ KGNoiseView *noiseView = [[KGNoiseView alloc] initWithFrame:self.window.rootViewController.view.bounds];
+ noiseView.backgroundColor = [UIColor darkGrayColor];
+ noiseView.noiseBlendMode = kCGBlendModeMultiply;
+ noiseView.noiseOpacity = 0.1;
+ [self.window.rootViewController.view addSubview:noiseView];
+
+ [self.window makeKeyAndVisible];
+ return YES;
+}
+
+@end
View
47 Example/KGIOSNoiseEample-Info.plist
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>en</string>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.davidkeegan.${PRODUCT_NAME:rfc1034identifier}</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSApplicationCategoryType</key>
+ <string>public.app-category.reference</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
2  Example/KGMacAppDelegate.h
@@ -9,7 +9,7 @@
#import <Cocoa/Cocoa.h>
#import "KGNoise.h"
-@interface KGAppDelegate : NSObject <NSApplicationDelegate>
+@interface KGMacAppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@property (weak) IBOutlet KGNoiseView *viewLeft;
View
4 Example/KGMacAppDelegate.m
@@ -8,12 +8,12 @@
#import "KGMacAppDelegate.h"
-@implementation KGAppDelegate
+@implementation KGMacAppDelegate
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification{
self.viewLeft.backgroundColor = [NSColor darkGrayColor];
- self.viewLeft.noiseOpacity = 0.1;
self.viewLeft.noiseBlendMode = kCGBlendModeMultiply;
+ self.viewLeft.noiseOpacity = 0.1;
self.viewRight.backgroundColor = [NSColor lightGrayColor];
self.viewRight.noiseOpacity = 0.2;
View
136 Example/KGMacNoiseExample.xcodeproj/project.pbxproj → Example/KGNoiseExample.xcodeproj/project.pbxproj
@@ -7,14 +7,23 @@
objects = {
/* Begin PBXBuildFile section */
+ 7324C77A16006DD4000A0863 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7324C77916006DD4000A0863 /* UIKit.framework */; };
+ 7324C77C16006DDF000A0863 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7324C77B16006DDF000A0863 /* Foundation.framework */; };
+ 7324C77E16006DFC000A0863 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7324C77D16006DFC000A0863 /* CoreGraphics.framework */; };
73CF1C1B1600604E006D9180 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 73CF1C1A1600604E006D9180 /* Cocoa.framework */; };
73CF1C4016006116006D9180 /* KGMacAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 73CF1C3E16006116006D9180 /* KGMacAppDelegate.m */; };
73CF1C4116006116006D9180 /* MacMain.m in Sources */ = {isa = PBXBuildFile; fileRef = 73CF1C3F16006116006D9180 /* MacMain.m */; };
73CF1C4316006181006D9180 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 73CF1C4216006181006D9180 /* MainMenu.xib */; };
73CF1C47160061B7006D9180 /* KGNoise.m in Sources */ = {isa = PBXBuildFile; fileRef = 73CF1C46160061B7006D9180 /* KGNoise.m */; };
+ 73CF1C81160069A1006D9180 /* iOSMain.m in Sources */ = {isa = PBXBuildFile; fileRef = 73CF1C7C160069A1006D9180 /* iOSMain.m */; };
+ 73CF1C82160069A1006D9180 /* KGIOSAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 73CF1C7E160069A1006D9180 /* KGIOSAppDelegate.m */; };
+ 73CF1C8416006B6B006D9180 /* KGNoise.m in Sources */ = {isa = PBXBuildFile; fileRef = 73CF1C46160061B7006D9180 /* KGNoise.m */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
+ 7324C77916006DD4000A0863 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
+ 7324C77B16006DDF000A0863 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
+ 7324C77D16006DFC000A0863 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks/CoreGraphics.framework; sourceTree = DEVELOPER_DIR; };
73CF1C161600604E006D9180 /* KGMacNoiseExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KGMacNoiseExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
73CF1C1A1600604E006D9180 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
73CF1C1D1600604E006D9180 /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
@@ -25,6 +34,10 @@
73CF1C4216006181006D9180 /* MainMenu.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MainMenu.xib; sourceTree = "<group>"; };
73CF1C45160061B7006D9180 /* KGNoise.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = KGNoise.h; path = ../KGNoise.h; sourceTree = "<group>"; };
73CF1C46160061B7006D9180 /* KGNoise.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = KGNoise.m; path = ../KGNoise.m; sourceTree = "<group>"; };
+ 73CF1C5A160068AD006D9180 /* KGIOSNoiseEample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KGIOSNoiseEample.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 73CF1C7C160069A1006D9180 /* iOSMain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = iOSMain.m; sourceTree = "<group>"; };
+ 73CF1C7D160069A1006D9180 /* KGIOSAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KGIOSAppDelegate.h; sourceTree = "<group>"; };
+ 73CF1C7E160069A1006D9180 /* KGIOSAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KGIOSAppDelegate.m; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -36,14 +49,26 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 73CF1C57160068AD006D9180 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 7324C77E16006DFC000A0863 /* CoreGraphics.framework in Frameworks */,
+ 7324C77C16006DDF000A0863 /* Foundation.framework in Frameworks */,
+ 7324C77A16006DD4000A0863 /* UIKit.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
73CF1C0B1600604E006D9180 = {
isa = PBXGroup;
children = (
- 73CF1C44160061A2006D9180 /* KGNoise */,
+ 73CF1C45160061B7006D9180 /* KGNoise.h */,
+ 73CF1C46160061B7006D9180 /* KGNoise.m */,
73CF1C3C160060C5006D9180 /* Mac Example */,
+ 73CF1C7B16006936006D9180 /* iOS Example */,
73CF1C171600604E006D9180 /* Products */,
);
sourceTree = "<group>";
@@ -52,6 +77,7 @@
isa = PBXGroup;
children = (
73CF1C161600604E006D9180 /* KGMacNoiseExample.app */,
+ 73CF1C5A160068AD006D9180 /* KGIOSNoiseEample.app */,
);
name = Products;
sourceTree = "<group>";
@@ -78,13 +104,25 @@
name = "Mac Example";
sourceTree = "<group>";
};
- 73CF1C44160061A2006D9180 /* KGNoise */ = {
+ 73CF1C5C160068AD006D9180 /* Frameworks */ = {
isa = PBXGroup;
children = (
- 73CF1C45160061B7006D9180 /* KGNoise.h */,
- 73CF1C46160061B7006D9180 /* KGNoise.m */,
+ 7324C77D16006DFC000A0863 /* CoreGraphics.framework */,
+ 7324C77B16006DDF000A0863 /* Foundation.framework */,
+ 7324C77916006DD4000A0863 /* UIKit.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "<group>";
+ };
+ 73CF1C7B16006936006D9180 /* iOS Example */ = {
+ isa = PBXGroup;
+ children = (
+ 73CF1C7C160069A1006D9180 /* iOSMain.m */,
+ 73CF1C7D160069A1006D9180 /* KGIOSAppDelegate.h */,
+ 73CF1C7E160069A1006D9180 /* KGIOSAppDelegate.m */,
+ 73CF1C5C160068AD006D9180 /* Frameworks */,
);
- name = KGNoise;
+ name = "iOS Example";
sourceTree = "<group>";
};
/* End PBXGroup section */
@@ -107,6 +145,23 @@
productReference = 73CF1C161600604E006D9180 /* KGMacNoiseExample.app */;
productType = "com.apple.product-type.application";
};
+ 73CF1C59160068AD006D9180 /* KGIOSNoiseEample */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 73CF1C78160068AD006D9180 /* Build configuration list for PBXNativeTarget "KGIOSNoiseEample" */;
+ buildPhases = (
+ 73CF1C56160068AD006D9180 /* Sources */,
+ 73CF1C57160068AD006D9180 /* Frameworks */,
+ 73CF1C58160068AD006D9180 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = KGIOSNoiseEample;
+ productName = KGIOSNoiseEample;
+ productReference = 73CF1C5A160068AD006D9180 /* KGIOSNoiseEample.app */;
+ productType = "com.apple.product-type.application";
+ };
/* End PBXNativeTarget section */
/* Begin PBXProject section */
@@ -117,7 +172,7 @@
LastUpgradeCheck = 0440;
ORGANIZATIONNAME = "David Keegan";
};
- buildConfigurationList = 73CF1C101600604E006D9180 /* Build configuration list for PBXProject "KGMacNoiseExample" */;
+ buildConfigurationList = 73CF1C101600604E006D9180 /* Build configuration list for PBXProject "KGNoiseExample" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
@@ -130,6 +185,7 @@
projectRoot = "";
targets = (
73CF1C151600604E006D9180 /* KGMacNoiseExample */,
+ 73CF1C59160068AD006D9180 /* KGIOSNoiseEample */,
);
};
/* End PBXProject section */
@@ -143,6 +199,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 73CF1C58160068AD006D9180 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@@ -156,6 +219,16 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 73CF1C56160068AD006D9180 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 73CF1C81160069A1006D9180 /* iOSMain.m in Sources */,
+ 73CF1C82160069A1006D9180 /* KGIOSAppDelegate.m in Sources */,
+ 73CF1C8416006B6B006D9180 /* KGNoise.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
/* End PBXSourcesBuildPhase section */
/* Begin XCBuildConfiguration section */
@@ -228,10 +301,50 @@
};
name = Release;
};
+ 73CF1C79160068AD006D9180 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"",
+ );
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ INFOPLIST_FILE = "KGIOSNoiseEample-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ WRAPPER_EXTENSION = app;
+ };
+ name = Debug;
+ };
+ 73CF1C7A160068AD006D9180 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ FRAMEWORK_SEARCH_PATHS = (
+ "$(inherited)",
+ "\"$(SYSTEM_APPS_DIR)/Xcode.app/Contents/Developer/Library/Frameworks\"",
+ );
+ GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
+ INFOPLIST_FILE = "KGIOSNoiseEample-Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 5.1;
+ OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VALIDATE_PRODUCT = YES;
+ WRAPPER_EXTENSION = app;
+ };
+ name = Release;
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
- 73CF1C101600604E006D9180 /* Build configuration list for PBXProject "KGMacNoiseExample" */ = {
+ 73CF1C101600604E006D9180 /* Build configuration list for PBXProject "KGNoiseExample" */ = {
isa = XCConfigurationList;
buildConfigurations = (
73CF1C321600604E006D9180 /* Debug */,
@@ -249,6 +362,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ 73CF1C78160068AD006D9180 /* Build configuration list for PBXNativeTarget "KGIOSNoiseEample" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 73CF1C79160068AD006D9180 /* Debug */,
+ 73CF1C7A160068AD006D9180 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
/* End XCConfigurationList section */
};
rootObject = 73CF1C0D1600604E006D9180 /* Project object */;
View
2  ...proj/project.xcworkspace/contents.xcworkspacedata → ...proj/project.xcworkspace/contents.xcworkspacedata
@@ -2,6 +2,6 @@
<Workspace
version = "1.0">
<FileRef
- location = "self:KGMacNoiseExample.xcodeproj">
+ location = "self:KGNoiseExample.xcodeproj">
</FileRef>
</Workspace>
View
31 Example/MainMenu.xib
@@ -1302,7 +1302,7 @@
<nil key="NSViewClass"/>
<nil key="NSUserInterfaceItemIdentifier"/>
<object class="NSView" key="NSWindowView" id="439893737">
- <reference key="NSNextResponder"/>
+ <nil key="NSNextResponder"/>
<int key="NSvFlags">256</int>
<array class="NSMutableArray" key="NSSubviews">
<object class="NSSplitView" id="599285279">
@@ -1314,7 +1314,6 @@
<int key="NSvFlags">256</int>
<string key="NSFrameSize">{121, 360}</string>
<reference key="NSSuperview" ref="599285279"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="712342299"/>
<string key="NSReuseIdentifierKey">_NS:11</string>
<string key="NSClassName">KGNoiseView</string>
@@ -1324,14 +1323,12 @@
<int key="NSvFlags">256</int>
<string key="NSFrame">{{122, 0}, {358, 360}}</string>
<reference key="NSSuperview" ref="599285279"/>
- <reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:13</string>
<string key="NSClassName">KGNoiseView</string>
</object>
</array>
<string key="NSFrameSize">{480, 360}</string>
<reference key="NSSuperview" ref="439893737"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="886914388"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="NSIsVertical">YES</bool>
@@ -1339,8 +1336,6 @@
</object>
</array>
<string key="NSFrameSize">{480, 360}</string>
- <reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="599285279"/>
</object>
<string key="NSScreenRect">{{0, 0}, {1440, 900}}</string>
@@ -1348,7 +1343,7 @@
<bool key="NSWindowIsRestorable">YES</bool>
</object>
<object class="NSCustomObject" id="976324537">
- <string key="NSClassName">KGAppDelegate</string>
+ <string key="NSClassName">KGMacAppDelegate</string>
</object>
<object class="NSCustomObject" id="755631768">
<string key="NSClassName">NSFontManager</string>
@@ -3346,28 +3341,6 @@
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
<object class="IBPartialClassDescription">
- <string key="className">KGAppDelegate</string>
- <string key="superclassName">NSObject</string>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="view">KGNoiseView</string>
- <string key="window">NSWindow</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="view">
- <string key="name">view</string>
- <string key="candidateClassName">KGNoiseView</string>
- </object>
- <object class="IBToOneOutletInfo" key="window">
- <string key="name">window</string>
- <string key="candidateClassName">NSWindow</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/KGAppDelegate.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
<string key="className">KGNoiseView</string>
<string key="superclassName">UIView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
View
16 Example/iOSMain.m
@@ -0,0 +1,16 @@
+//
+// iOSMain.m
+// KGNoiseEample
+//
+// Created by David Keegan on 9/11/12.
+// Copyright (c) 2012 David Keegan. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import "KGIOSAppDelegate.h"
+
+int main(int argc, char *argv[]){
+ @autoreleasepool {
+ return UIApplicationMain(argc, argv, nil, NSStringFromClass([KGIOSAppDelegate class]));
+ }
+}
View
2  KGNoise.h
@@ -1,6 +1,6 @@
//
// KGNoise.h
-// KGMacNoiseExample
+// KGNoise
//
// Created by David Keegan on 9/11/12.
// Copyright (c) 2012 David Keegan. All rights reserved.
View
6 KGNoise.m
@@ -1,6 +1,6 @@
//
// KGNoise.m
-// KGMacNoiseExample
+// KGNoise
//
// Created by David Keegan on 9/11/12.
// Copyright (c) 2012 David Keegan. All rights reserved.
@@ -82,9 +82,9 @@ - (id)initWithCoder:(NSCoder *)aDecoder{
- (void)setup{
#if TARGET_OS_IPHONE
- self.backgroundColor = [UIColor blackColor];
+ self.backgroundColor = [UIColor grayColor];
#else
- self.backgroundColor = [NSColor blackColor];
+ self.backgroundColor = [NSColor grayColor];
#endif
self.noiseOpacity = 0.1;
self.noiseBlendMode = kCGBlendModeScreen;
Please sign in to comment.
Something went wrong with that request. Please try again.