Created
December 6, 2012 09:17
-
-
Save thata/4223176 to your computer and use it in GitHub Desktop.
GradientSample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.h | |
// GradientSample | |
// | |
// Created by hatakeyama takashi on 12/12/06. | |
// Copyright (c) 2012年 chikuwaprog. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface AppDelegate : UIResponder <UIApplicationDelegate> | |
@property (strong, nonatomic) UIWindow *window; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AppDelegate.m | |
// GradientSample | |
// | |
// Created by hatakeyama takashi on 12/12/06. | |
// Copyright (c) 2012年 chikuwaprog. All rights reserved. | |
// | |
#import "AppDelegate.h" | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
{ | |
// Override point for customization after application launch. | |
return YES; | |
} | |
- (void)applicationWillResignActive:(UIApplication *)application | |
{ | |
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | |
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. | |
} | |
- (void)applicationDidEnterBackground:(UIApplication *)application | |
{ | |
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. | |
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | |
} | |
- (void)applicationWillEnterForeground:(UIApplication *)application | |
{ | |
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. | |
} | |
- (void)applicationDidBecomeActive:(UIApplication *)application | |
{ | |
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | |
} | |
- (void)applicationWillTerminate:(UIApplication *)application | |
{ | |
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Workspace | |
version = "1.0"> | |
<FileRef | |
location = "self:GradientSample.xcodeproj"> | |
</FileRef> | |
</Workspace> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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.chikuwaprog.${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>LSRequiresIPhoneOS</key> | |
<true/> | |
<key>UIMainStoryboardFile</key> | |
<string>MainStoryboard</string> | |
<key>UIRequiredDeviceCapabilities</key> | |
<array> | |
<string>armv7</string> | |
</array> | |
<key>UISupportedInterfaceOrientations</key> | |
<array> | |
<string>UIInterfaceOrientationPortrait</string> | |
<string>UIInterfaceOrientationLandscapeLeft</string> | |
<string>UIInterfaceOrientationLandscapeRight</string> | |
</array> | |
</dict> | |
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Prefix header for all source files of the 'GradientSample' target in the 'GradientSample' project | |
// | |
#import <Availability.h> | |
#ifndef __IPHONE_5_0 | |
#warning "This project uses features only available in iOS SDK 5.0 and later." | |
#endif | |
#ifdef __OBJC__ | |
#import <UIKit/UIKit.h> | |
#import <Foundation/Foundation.h> | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Scheme | |
LastUpgradeVersion = "0450" | |
version = "1.3"> | |
<BuildAction | |
parallelizeBuildables = "YES" | |
buildImplicitDependencies = "YES"> | |
<BuildActionEntries> | |
<BuildActionEntry | |
buildForTesting = "YES" | |
buildForRunning = "YES" | |
buildForProfiling = "YES" | |
buildForArchiving = "YES" | |
buildForAnalyzing = "YES"> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "7A27F2DD16709B860065C7FC" | |
BuildableName = "GradientSample.app" | |
BlueprintName = "GradientSample" | |
ReferencedContainer = "container:GradientSample.xcodeproj"> | |
</BuildableReference> | |
</BuildActionEntry> | |
</BuildActionEntries> | |
</BuildAction> | |
<TestAction | |
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
shouldUseLaunchSchemeArgsEnv = "YES" | |
buildConfiguration = "Debug"> | |
<Testables> | |
</Testables> | |
<MacroExpansion> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "7A27F2DD16709B860065C7FC" | |
BuildableName = "GradientSample.app" | |
BlueprintName = "GradientSample" | |
ReferencedContainer = "container:GradientSample.xcodeproj"> | |
</BuildableReference> | |
</MacroExpansion> | |
</TestAction> | |
<LaunchAction | |
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | |
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | |
launchStyle = "0" | |
useCustomWorkingDirectory = "NO" | |
buildConfiguration = "Debug" | |
ignoresPersistentStateOnLaunch = "NO" | |
debugDocumentVersioning = "YES" | |
allowLocationSimulation = "YES"> | |
<BuildableProductRunnable> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "7A27F2DD16709B860065C7FC" | |
BuildableName = "GradientSample.app" | |
BlueprintName = "GradientSample" | |
ReferencedContainer = "container:GradientSample.xcodeproj"> | |
</BuildableReference> | |
</BuildableProductRunnable> | |
<AdditionalOptions> | |
</AdditionalOptions> | |
</LaunchAction> | |
<ProfileAction | |
shouldUseLaunchSchemeArgsEnv = "YES" | |
savedToolIdentifier = "" | |
useCustomWorkingDirectory = "NO" | |
buildConfiguration = "Release" | |
debugDocumentVersioning = "YES"> | |
<BuildableProductRunnable> | |
<BuildableReference | |
BuildableIdentifier = "primary" | |
BlueprintIdentifier = "7A27F2DD16709B860065C7FC" | |
BuildableName = "GradientSample.app" | |
BlueprintName = "GradientSample" | |
ReferencedContainer = "container:GradientSample.xcodeproj"> | |
</BuildableReference> | |
</BuildableProductRunnable> | |
</ProfileAction> | |
<AnalyzeAction | |
buildConfiguration = "Debug"> | |
</AnalyzeAction> | |
<ArchiveAction | |
buildConfiguration = "Release" | |
revealArchiveInOrganizer = "YES"> | |
</ArchiveAction> | |
</Scheme> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Localized versions of Info.plist keys */ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// GradientSample | |
// | |
// Created by hatakeyama takashi on 12/12/06. | |
// Copyright (c) 2012年 chikuwaprog. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "AppDelegate.h" | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool { | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2844" systemVersion="11G63" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2"> | |
<dependencies> | |
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1930"/> | |
</dependencies> | |
<scenes> | |
<!--View Controller--> | |
<scene sceneID="5"> | |
<objects> | |
<viewController id="2" customClass="ViewController" sceneMemberID="viewController"> | |
<view key="view" contentMode="scaleToFill" id="3"> | |
<rect key="frame" x="0.0" y="20" width="320" height="548"/> | |
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> | |
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/> | |
</view> | |
<connections> | |
<outlet property="myView" destination="3" id="7U0-rS-2y0"/> | |
</connections> | |
</viewController> | |
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/> | |
</objects> | |
</scene> | |
</scenes> | |
<classes> | |
<class className="ViewController" superclassName="UIViewController"> | |
<source key="sourceIdentifier" type="project" relativePath="./Classes/ViewController.h"/> | |
<relationships> | |
<relationship kind="outlet" name="myView" candidateClass="UIView"/> | |
</relationships> | |
</class> | |
</classes> | |
<simulatedMetricsContainer key="defaultSimulatedMetrics"> | |
<simulatedStatusBarMetrics key="statusBar"/> | |
<simulatedOrientationMetrics key="orientation"/> | |
<simulatedScreenMetrics key="destination" type="retina4"/> | |
</simulatedMetricsContainer> | |
</document> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !$*UTF8*$! | |
{ | |
archiveVersion = 1; | |
classes = { | |
}; | |
objectVersion = 46; | |
objects = { | |
/* Begin PBXBuildFile section */ | |
7A27F2E316709B860065C7FC /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A27F2E216709B860065C7FC /* UIKit.framework */; }; | |
7A27F2E516709B860065C7FC /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A27F2E416709B860065C7FC /* Foundation.framework */; }; | |
7A27F2E716709B860065C7FC /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A27F2E616709B860065C7FC /* CoreGraphics.framework */; }; | |
7A27F2ED16709B860065C7FC /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 7A27F2EB16709B860065C7FC /* InfoPlist.strings */; }; | |
7A27F2EF16709B860065C7FC /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A27F2EE16709B860065C7FC /* main.m */; }; | |
7A27F2F316709B860065C7FC /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A27F2F216709B860065C7FC /* AppDelegate.m */; }; | |
7A27F2F516709B860065C7FC /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 7A27F2F416709B860065C7FC /* Default.png */; }; | |
7A27F2F716709B860065C7FC /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 7A27F2F616709B860065C7FC /* [email protected] */; }; | |
7A27F2F916709B860065C7FC /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = 7A27F2F816709B860065C7FC /* [email protected] */; }; | |
7A27F2FC16709B860065C7FC /* MainStoryboard.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7A27F2FA16709B860065C7FC /* MainStoryboard.storyboard */; }; | |
7A27F2FF16709B860065C7FC /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A27F2FE16709B860065C7FC /* ViewController.m */; }; | |
7A27F30616709C9F0065C7FC /* QuartzCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7A27F30516709C9F0065C7FC /* QuartzCore.framework */; }; | |
/* End PBXBuildFile section */ | |
/* Begin PBXFileReference section */ | |
7A27F2DE16709B860065C7FC /* GradientSample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GradientSample.app; sourceTree = BUILT_PRODUCTS_DIR; }; | |
7A27F2E216709B860065C7FC /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; | |
7A27F2E416709B860065C7FC /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; | |
7A27F2E616709B860065C7FC /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; | |
7A27F2EA16709B860065C7FC /* GradientSample-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "GradientSample-Info.plist"; sourceTree = "<group>"; }; | |
7A27F2EC16709B860065C7FC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; }; | |
7A27F2EE16709B860065C7FC /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; | |
7A27F2F016709B860065C7FC /* GradientSample-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "GradientSample-Prefix.pch"; sourceTree = "<group>"; }; | |
7A27F2F116709B860065C7FC /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; }; | |
7A27F2F216709B860065C7FC /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; }; | |
7A27F2F416709B860065C7FC /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; }; | |
7A27F2F616709B860065C7FC /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | |
7A27F2F816709B860065C7FC /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; }; | |
7A27F2FB16709B860065C7FC /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard.storyboard; sourceTree = "<group>"; }; | |
7A27F2FD16709B860065C7FC /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; }; | |
7A27F2FE16709B860065C7FC /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; }; | |
7A27F30516709C9F0065C7FC /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; }; | |
/* End PBXFileReference section */ | |
/* Begin PBXFrameworksBuildPhase section */ | |
7A27F2DB16709B860065C7FC /* Frameworks */ = { | |
isa = PBXFrameworksBuildPhase; | |
buildActionMask = 2147483647; | |
files = ( | |
7A27F30616709C9F0065C7FC /* QuartzCore.framework in Frameworks */, | |
7A27F2E316709B860065C7FC /* UIKit.framework in Frameworks */, | |
7A27F2E516709B860065C7FC /* Foundation.framework in Frameworks */, | |
7A27F2E716709B860065C7FC /* CoreGraphics.framework in Frameworks */, | |
); | |
runOnlyForDeploymentPostprocessing = 0; | |
}; | |
/* End PBXFrameworksBuildPhase section */ | |
/* Begin PBXGroup section */ | |
7A27F2D316709B860065C7FC = { | |
isa = PBXGroup; | |
children = ( | |
7A27F30516709C9F0065C7FC /* QuartzCore.framework */, | |
7A27F2E816709B860065C7FC /* GradientSample */, | |
7A27F2E116709B860065C7FC /* Frameworks */, | |
7A27F2DF16709B860065C7FC /* Products */, | |
); | |
sourceTree = "<group>"; | |
}; | |
7A27F2DF16709B860065C7FC /* Products */ = { | |
isa = PBXGroup; | |
children = ( | |
7A27F2DE16709B860065C7FC /* GradientSample.app */, | |
); | |
name = Products; | |
sourceTree = "<group>"; | |
}; | |
7A27F2E116709B860065C7FC /* Frameworks */ = { | |
isa = PBXGroup; | |
children = ( | |
7A27F2E216709B860065C7FC /* UIKit.framework */, | |
7A27F2E416709B860065C7FC /* Foundation.framework */, | |
7A27F2E616709B860065C7FC /* CoreGraphics.framework */, | |
); | |
name = Frameworks; | |
sourceTree = "<group>"; | |
}; | |
7A27F2E816709B860065C7FC /* GradientSample */ = { | |
isa = PBXGroup; | |
children = ( | |
7A27F2F116709B860065C7FC /* AppDelegate.h */, | |
7A27F2F216709B860065C7FC /* AppDelegate.m */, | |
7A27F2FA16709B860065C7FC /* MainStoryboard.storyboard */, | |
7A27F2FD16709B860065C7FC /* ViewController.h */, | |
7A27F2FE16709B860065C7FC /* ViewController.m */, | |
7A27F2E916709B860065C7FC /* Supporting Files */, | |
); | |
path = GradientSample; | |
sourceTree = "<group>"; | |
}; | |
7A27F2E916709B860065C7FC /* Supporting Files */ = { | |
isa = PBXGroup; | |
children = ( | |
7A27F2EA16709B860065C7FC /* GradientSample-Info.plist */, | |
7A27F2EB16709B860065C7FC /* InfoPlist.strings */, | |
7A27F2EE16709B860065C7FC /* main.m */, | |
7A27F2F016709B860065C7FC /* GradientSample-Prefix.pch */, | |
7A27F2F416709B860065C7FC /* Default.png */, | |
7A27F2F616709B860065C7FC /* [email protected] */, | |
7A27F2F816709B860065C7FC /* [email protected] */, | |
); | |
name = "Supporting Files"; | |
sourceTree = "<group>"; | |
}; | |
/* End PBXGroup section */ | |
/* Begin PBXNativeTarget section */ | |
7A27F2DD16709B860065C7FC /* GradientSample */ = { | |
isa = PBXNativeTarget; | |
buildConfigurationList = 7A27F30216709B860065C7FC /* Build configuration list for PBXNativeTarget "GradientSample" */; | |
buildPhases = ( | |
7A27F2DA16709B860065C7FC /* Sources */, | |
7A27F2DB16709B860065C7FC /* Frameworks */, | |
7A27F2DC16709B860065C7FC /* Resources */, | |
); | |
buildRules = ( | |
); | |
dependencies = ( | |
); | |
name = GradientSample; | |
productName = GradientSample; | |
productReference = 7A27F2DE16709B860065C7FC /* GradientSample.app */; | |
productType = "com.apple.product-type.application"; | |
}; | |
/* End PBXNativeTarget section */ | |
/* Begin PBXProject section */ | |
7A27F2D516709B860065C7FC /* Project object */ = { | |
isa = PBXProject; | |
attributes = { | |
LastUpgradeCheck = 0450; | |
ORGANIZATIONNAME = chikuwaprog; | |
}; | |
buildConfigurationList = 7A27F2D816709B860065C7FC /* Build configuration list for PBXProject "GradientSample" */; | |
compatibilityVersion = "Xcode 3.2"; | |
developmentRegion = English; | |
hasScannedForEncodings = 0; | |
knownRegions = ( | |
en, | |
); | |
mainGroup = 7A27F2D316709B860065C7FC; | |
productRefGroup = 7A27F2DF16709B860065C7FC /* Products */; | |
projectDirPath = ""; | |
projectRoot = ""; | |
targets = ( | |
7A27F2DD16709B860065C7FC /* GradientSample */, | |
); | |
}; | |
/* End PBXProject section */ | |
/* Begin PBXResourcesBuildPhase section */ | |
7A27F2DC16709B860065C7FC /* Resources */ = { | |
isa = PBXResourcesBuildPhase; | |
buildActionMask = 2147483647; | |
files = ( | |
7A27F2ED16709B860065C7FC /* InfoPlist.strings in Resources */, | |
7A27F2F516709B860065C7FC /* Default.png in Resources */, | |
7A27F2F716709B860065C7FC /* [email protected] in Resources */, | |
7A27F2F916709B860065C7FC /* [email protected] in Resources */, | |
7A27F2FC16709B860065C7FC /* MainStoryboard.storyboard in Resources */, | |
); | |
runOnlyForDeploymentPostprocessing = 0; | |
}; | |
/* End PBXResourcesBuildPhase section */ | |
/* Begin PBXSourcesBuildPhase section */ | |
7A27F2DA16709B860065C7FC /* Sources */ = { | |
isa = PBXSourcesBuildPhase; | |
buildActionMask = 2147483647; | |
files = ( | |
7A27F2EF16709B860065C7FC /* main.m in Sources */, | |
7A27F2F316709B860065C7FC /* AppDelegate.m in Sources */, | |
7A27F2FF16709B860065C7FC /* ViewController.m in Sources */, | |
); | |
runOnlyForDeploymentPostprocessing = 0; | |
}; | |
/* End PBXSourcesBuildPhase section */ | |
/* Begin PBXVariantGroup section */ | |
7A27F2EB16709B860065C7FC /* InfoPlist.strings */ = { | |
isa = PBXVariantGroup; | |
children = ( | |
7A27F2EC16709B860065C7FC /* en */, | |
); | |
name = InfoPlist.strings; | |
sourceTree = "<group>"; | |
}; | |
7A27F2FA16709B860065C7FC /* MainStoryboard.storyboard */ = { | |
isa = PBXVariantGroup; | |
children = ( | |
7A27F2FB16709B860065C7FC /* en */, | |
); | |
name = MainStoryboard.storyboard; | |
sourceTree = "<group>"; | |
}; | |
/* End PBXVariantGroup section */ | |
/* Begin XCBuildConfiguration section */ | |
7A27F30016709B860065C7FC /* Debug */ = { | |
isa = XCBuildConfiguration; | |
buildSettings = { | |
ALWAYS_SEARCH_USER_PATHS = NO; | |
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
CLANG_CXX_LIBRARY = "libc++"; | |
CLANG_ENABLE_OBJC_ARC = YES; | |
CLANG_WARN_EMPTY_BODY = YES; | |
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
COPY_PHASE_STRIP = NO; | |
GCC_C_LANGUAGE_STANDARD = gnu99; | |
GCC_DYNAMIC_NO_PIC = NO; | |
GCC_OPTIMIZATION_LEVEL = 0; | |
GCC_PREPROCESSOR_DEFINITIONS = ( | |
"DEBUG=1", | |
"$(inherited)", | |
); | |
GCC_SYMBOLS_PRIVATE_EXTERN = NO; | |
GCC_WARN_ABOUT_RETURN_TYPE = YES; | |
GCC_WARN_UNINITIALIZED_AUTOS = YES; | |
GCC_WARN_UNUSED_VARIABLE = YES; | |
IPHONEOS_DEPLOYMENT_TARGET = 6.0; | |
ONLY_ACTIVE_ARCH = YES; | |
SDKROOT = iphoneos; | |
}; | |
name = Debug; | |
}; | |
7A27F30116709B860065C7FC /* Release */ = { | |
isa = XCBuildConfiguration; | |
buildSettings = { | |
ALWAYS_SEARCH_USER_PATHS = NO; | |
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; | |
CLANG_CXX_LIBRARY = "libc++"; | |
CLANG_ENABLE_OBJC_ARC = YES; | |
CLANG_WARN_EMPTY_BODY = YES; | |
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | |
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; | |
COPY_PHASE_STRIP = YES; | |
GCC_C_LANGUAGE_STANDARD = gnu99; | |
GCC_WARN_ABOUT_RETURN_TYPE = YES; | |
GCC_WARN_UNINITIALIZED_AUTOS = YES; | |
GCC_WARN_UNUSED_VARIABLE = YES; | |
IPHONEOS_DEPLOYMENT_TARGET = 6.0; | |
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; | |
SDKROOT = iphoneos; | |
VALIDATE_PRODUCT = YES; | |
}; | |
name = Release; | |
}; | |
7A27F30316709B860065C7FC /* Debug */ = { | |
isa = XCBuildConfiguration; | |
buildSettings = { | |
GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
GCC_PREFIX_HEADER = "GradientSample/GradientSample-Prefix.pch"; | |
INFOPLIST_FILE = "GradientSample/GradientSample-Info.plist"; | |
PRODUCT_NAME = "$(TARGET_NAME)"; | |
WRAPPER_EXTENSION = app; | |
}; | |
name = Debug; | |
}; | |
7A27F30416709B860065C7FC /* Release */ = { | |
isa = XCBuildConfiguration; | |
buildSettings = { | |
GCC_PRECOMPILE_PREFIX_HEADER = YES; | |
GCC_PREFIX_HEADER = "GradientSample/GradientSample-Prefix.pch"; | |
INFOPLIST_FILE = "GradientSample/GradientSample-Info.plist"; | |
PRODUCT_NAME = "$(TARGET_NAME)"; | |
WRAPPER_EXTENSION = app; | |
}; | |
name = Release; | |
}; | |
/* End XCBuildConfiguration section */ | |
/* Begin XCConfigurationList section */ | |
7A27F2D816709B860065C7FC /* Build configuration list for PBXProject "GradientSample" */ = { | |
isa = XCConfigurationList; | |
buildConfigurations = ( | |
7A27F30016709B860065C7FC /* Debug */, | |
7A27F30116709B860065C7FC /* Release */, | |
); | |
defaultConfigurationIsVisible = 0; | |
defaultConfigurationName = Release; | |
}; | |
7A27F30216709B860065C7FC /* Build configuration list for PBXNativeTarget "GradientSample" */ = { | |
isa = XCConfigurationList; | |
buildConfigurations = ( | |
7A27F30316709B860065C7FC /* Debug */, | |
7A27F30416709B860065C7FC /* Release */, | |
); | |
defaultConfigurationIsVisible = 0; | |
}; | |
/* End XCConfigurationList section */ | |
}; | |
rootObject = 7A27F2D516709B860065C7FC /* Project object */; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.h | |
// GradientSample | |
// | |
// Created by hatakeyama takashi on 12/12/06. | |
// Copyright (c) 2012年 chikuwaprog. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
@interface ViewController : UIViewController | |
@property (strong, nonatomic) IBOutlet UIView *myView; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.m | |
// GradientSample | |
// | |
// Created by hatakeyama takashi on 12/12/06. | |
// Copyright (c) 2012年 chikuwaprog. All rights reserved. | |
// | |
#import "ViewController.h" | |
#import <QuartzCore/QuartzCore.h> | |
@interface ViewController () | |
@end | |
@implementation ViewController | |
- (void)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
// UIViewへグラデーションをかける | |
CAGradientLayer *gradientLayer = [CAGradientLayer layer]; | |
gradientLayer.frame = self.myView.bounds; | |
gradientLayer.colors = [NSArray arrayWithObjects: | |
(id)[[UIColor whiteColor] CGColor], | |
(id)[[UIColor darkGrayColor] CGColor], | |
nil]; | |
[self.myView.layer insertSublayer:gradientLayer atIndex:0]; | |
} | |
- (void)didReceiveMemoryWarning | |
{ | |
[super didReceiveMemoryWarning]; | |
// Dispose of any resources that can be recreated. | |
} | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>SchemeUserState</key> | |
<dict> | |
<key>GradientSample.xcscheme</key> | |
<dict> | |
<key>orderHint</key> | |
<integer>0</integer> | |
</dict> | |
</dict> | |
<key>SuppressBuildableAutocreation</key> | |
<dict> | |
<key>7A27F2DD16709B860065C7FC</key> | |
<dict> | |
<key>primary</key> | |
<true/> | |
</dict> | |
</dict> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment