Prep for Shortcut
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.xcodeproj/*
|
||||
!*.xcodeproj/project.pbxproj
|
||||
/build
|
||||
1
C02 - Documents/01 - UTI Utilities
Submodule
1
C02 - Documents/02 - Passive Pasting
Submodule
1
C02 - Documents/03 - Monitoring
Submodule
BIN
C02 - Documents/04 - Activity Controller/.DS_Store
vendored
Normal file
BIN
C02 - Documents/04 - Activity Controller/AppArt/.DS_Store
vendored
Normal file
|
After Width: | Height: | Size: 412 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 567 KiB |
|
After Width: | Height: | Size: 206 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Default.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Default@2x.png
Normal file
|
After Width: | Height: | Size: 223 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon-144.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon-72.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon-Small.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon@2x.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon~ipad.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
C02 - Documents/04 - Activity Controller/AppArt/Icon~ipad@2x.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,309 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
8E72651015CC46EF00E387FF /* Utility.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E72650F15CC46EF00E387FF /* Utility.m */; };
|
||||
8EB9BF0E158B9B4800F96828 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF0D158B9B4800F96828 /* Icon.png */; };
|
||||
8EB9BF19158B9B7900F96828 /* Default-Landscape@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */; };
|
||||
8EB9BF1A158B9B7900F96828 /* Default-Landscape~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */; };
|
||||
8EB9BF1B158B9B7900F96828 /* Default-Portrait@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */; };
|
||||
8EB9BF1C158B9B7900F96828 /* Default-Portrait~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */; };
|
||||
8EB9BF1D158B9B7900F96828 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF14158B9B7900F96828 /* Default.png */; };
|
||||
8EB9BF1E158B9B7900F96828 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF15158B9B7900F96828 /* Default@2x.png */; };
|
||||
8EB9BF1F158B9B7900F96828 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF16158B9B7900F96828 /* Icon@2x.png */; };
|
||||
8EB9BF20158B9B7900F96828 /* Icon~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF17158B9B7900F96828 /* Icon~ipad.png */; };
|
||||
8EB9BF21158B9B7900F96828 /* Icon~ipad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */; };
|
||||
8EF624E115892BA600A81FD2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E015892BA600A81FD2 /* UIKit.framework */; };
|
||||
8EF624E315892BA600A81FD2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E215892BA600A81FD2 /* Foundation.framework */; };
|
||||
8EF624E515892BA600A81FD2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E415892BA600A81FD2 /* CoreGraphics.framework */; };
|
||||
8EF624EB15892BA600A81FD2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8EF624E915892BA600A81FD2 /* InfoPlist.strings */; };
|
||||
8EF624ED15892BA600A81FD2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EF624EC15892BA600A81FD2 /* main.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
8E72650F15CC46EF00E387FF /* Utility.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Utility.m; sourceTree = "<group>"; };
|
||||
8EB9BF0D158B9B4800F96828 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon.png; path = AppArt/Icon.png; sourceTree = "<group>"; };
|
||||
8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Landscape@2x~ipad.png"; path = "AppArt/Default-Landscape@2x~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Landscape~ipad.png"; path = "AppArt/Default-Landscape~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Portrait@2x~ipad.png"; path = "AppArt/Default-Portrait@2x~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Portrait~ipad.png"; path = "AppArt/Default-Portrait~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF14158B9B7900F96828 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = AppArt/Default.png; sourceTree = "<group>"; };
|
||||
8EB9BF15158B9B7900F96828 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "AppArt/Default@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF16158B9B7900F96828 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon@2x.png"; path = "AppArt/Icon@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF17158B9B7900F96828 /* Icon~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad.png"; path = "AppArt/Icon~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad@2x.png"; path = "AppArt/Icon~ipad@2x.png"; sourceTree = "<group>"; };
|
||||
8EE9B88F15B746C400F4FCCA /* Utility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Utility.h; sourceTree = "<group>"; };
|
||||
8EF624DC15892BA600A81FD2 /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8EF624E015892BA600A81FD2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
8EF624E215892BA600A81FD2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
8EF624E415892BA600A81FD2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
8EF624E815892BA600A81FD2 /* HelloWorld-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HelloWorld-Info.plist"; sourceTree = "<group>"; };
|
||||
8EF624EA15892BA600A81FD2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
8EF624EC15892BA600A81FD2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = main.m; path = HelloWorld/main.m; sourceTree = "<group>"; };
|
||||
8EF624EE15892BA600A81FD2 /* HelloWorld-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HelloWorld-Prefix.pch"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8EF624D915892BA600A81FD2 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624E115892BA600A81FD2 /* UIKit.framework in Frameworks */,
|
||||
8EF624E315892BA600A81FD2 /* Foundation.framework in Frameworks */,
|
||||
8EF624E515892BA600A81FD2 /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
8EF624D115892BA600A81FD2 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624EC15892BA600A81FD2 /* main.m */,
|
||||
8EF624E715892BA600A81FD2 /* Supporting Files */,
|
||||
8EF624DF15892BA600A81FD2 /* Frameworks */,
|
||||
8EF624DD15892BA600A81FD2 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624DD15892BA600A81FD2 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624DC15892BA600A81FD2 /* HelloWorld.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624DF15892BA600A81FD2 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624E015892BA600A81FD2 /* UIKit.framework */,
|
||||
8EF624E215892BA600A81FD2 /* Foundation.framework */,
|
||||
8EF624E415892BA600A81FD2 /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624E715892BA600A81FD2 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EE9B88F15B746C400F4FCCA /* Utility.h */,
|
||||
8E72650F15CC46EF00E387FF /* Utility.m */,
|
||||
8EF6250B15892CDA00A81FD2 /* System Art */,
|
||||
8EF624E815892BA600A81FD2 /* HelloWorld-Info.plist */,
|
||||
8EF624E915892BA600A81FD2 /* InfoPlist.strings */,
|
||||
8EF624EE15892BA600A81FD2 /* HelloWorld-Prefix.pch */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
path = HelloWorld;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF6250B15892CDA00A81FD2 /* System Art */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EB9BF0D158B9B4800F96828 /* Icon.png */,
|
||||
8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */,
|
||||
8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */,
|
||||
8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */,
|
||||
8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */,
|
||||
8EB9BF14158B9B7900F96828 /* Default.png */,
|
||||
8EB9BF15158B9B7900F96828 /* Default@2x.png */,
|
||||
8EB9BF16158B9B7900F96828 /* Icon@2x.png */,
|
||||
8EB9BF17158B9B7900F96828 /* Icon~ipad.png */,
|
||||
8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */,
|
||||
);
|
||||
name = "System Art";
|
||||
path = ..;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8EF624DB15892BA600A81FD2 /* HelloWorld */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 8EF624F415892BA600A81FD2 /* Build configuration list for PBXNativeTarget "HelloWorld" */;
|
||||
buildPhases = (
|
||||
8EF624D815892BA600A81FD2 /* Sources */,
|
||||
8EF624D915892BA600A81FD2 /* Frameworks */,
|
||||
8EF624DA15892BA600A81FD2 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = HelloWorld;
|
||||
productName = HelloWorld;
|
||||
productReference = 8EF624DC15892BA600A81FD2 /* HelloWorld.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
8EF624D315892BA600A81FD2 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0450;
|
||||
ORGANIZATIONNAME = "Erica Sadun";
|
||||
};
|
||||
buildConfigurationList = 8EF624D615892BA600A81FD2 /* Build configuration list for PBXProject "HelloWorld" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 8EF624D115892BA600A81FD2;
|
||||
productRefGroup = 8EF624DD15892BA600A81FD2 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8EF624DB15892BA600A81FD2 /* HelloWorld */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8EF624DA15892BA600A81FD2 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624EB15892BA600A81FD2 /* InfoPlist.strings in Resources */,
|
||||
8EB9BF0E158B9B4800F96828 /* Icon.png in Resources */,
|
||||
8EB9BF19158B9B7900F96828 /* Default-Landscape@2x~ipad.png in Resources */,
|
||||
8EB9BF1A158B9B7900F96828 /* Default-Landscape~ipad.png in Resources */,
|
||||
8EB9BF1B158B9B7900F96828 /* Default-Portrait@2x~ipad.png in Resources */,
|
||||
8EB9BF1C158B9B7900F96828 /* Default-Portrait~ipad.png in Resources */,
|
||||
8EB9BF1D158B9B7900F96828 /* Default.png in Resources */,
|
||||
8EB9BF1E158B9B7900F96828 /* Default@2x.png in Resources */,
|
||||
8EB9BF1F158B9B7900F96828 /* Icon@2x.png in Resources */,
|
||||
8EB9BF20158B9B7900F96828 /* Icon~ipad.png in Resources */,
|
||||
8EB9BF21158B9B7900F96828 /* Icon~ipad@2x.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8EF624D815892BA600A81FD2 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624ED15892BA600A81FD2 /* main.m in Sources */,
|
||||
8E72651015CC46EF00E387FF /* Utility.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
8EF624E915892BA600A81FD2 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
8EF624EA15892BA600A81FD2 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
8EF624F215892BA600A81FD2 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_ENABLE_OBJC_ARC = 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;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8EF624F315892BA600A81FD2 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_ENABLE_OBJC_ARC = 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;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
8EF624F515892BA600A81FD2 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "HelloWorld/HelloWorld-Prefix.pch";
|
||||
INFOPLIST_FILE = "HelloWorld/HelloWorld-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8EF624F615892BA600A81FD2 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "HelloWorld/HelloWorld-Prefix.pch";
|
||||
INFOPLIST_FILE = "HelloWorld/HelloWorld-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
8EF624D615892BA600A81FD2 /* Build configuration list for PBXProject "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8EF624F215892BA600A81FD2 /* Debug */,
|
||||
8EF624F315892BA600A81FD2 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
8EF624F415892BA600A81FD2 /* Build configuration list for PBXNativeTarget "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8EF624F515892BA600A81FD2 /* Debug */,
|
||||
8EF624F615892BA600A81FD2 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 8EF624D315892BA600A81FD2 /* Project object */;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:HelloWorld.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?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>HelloWorld.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
<key>8EF624DB15892BA600A81FD2</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?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>CFBundleIcons</key>
|
||||
<dict>
|
||||
<key>CFBundlePrimaryIcon</key>
|
||||
<dict>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array>
|
||||
<string>Icon.png</string>
|
||||
<string>Icon@2x.png</string>
|
||||
<string>Default.png</string>
|
||||
<string>Default@2x.png</string>
|
||||
<string>Icon~ipad.png</string>
|
||||
<string>Icon~ipad@2x.png</string>
|
||||
<string>Default-Portrait~ipad.png</string>
|
||||
<string>Default-Portrait@2x~ipad.png</string>
|
||||
<string>Default-Landscape~ipad.png</string>
|
||||
<string>Default-Landscape@2x~ipad.png</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sadun.${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>UIFileSharingEnabled</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>
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Prefix header for all source files of the 'HelloWorld' target in the 'HelloWorld' project
|
||||
//
|
||||
|
||||
#import <Availability.h>
|
||||
|
||||
#ifndef __IPHONE_3_0
|
||||
#warning "This project uses features only available in iOS SDK 3.0 and later."
|
||||
#endif
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
Erica Sadun, http://ericasadun.com
|
||||
iPhone Developer's Cookbook, 6.x Edition
|
||||
BSD License, Use at your own risk
|
||||
*/
|
||||
|
||||
UIImage *blockImage(NSString *aString);
|
||||
|
||||
#pragma mark - Cookbook
|
||||
#define COOKBOOK_PURPLE_COLOR [UIColor colorWithRed:0.20392f green:0.19607f blue:0.61176f alpha:1.0f]
|
||||
|
||||
#pragma mark - Bar Buttons
|
||||
#define BARBUTTON(TITLE, SELECTOR) [[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:self action:SELECTOR]
|
||||
#define SYSBARBUTTON(ITEM, SELECTOR) [[UIBarButtonItem alloc] initWithBarButtonSystemItem:ITEM target:self action:SELECTOR]
|
||||
#define IMGBARBUTTON(IMAGE, SELECTOR) [[UIBarButtonItem alloc] initWithImage:IMAGE style:UIBarButtonItemStylePlain target:self action:SELECTOR]
|
||||
#define CUSTOMBARBUTTON(VIEW) [[UIBarButtonItem alloc] initWithCustomView:VIEW]
|
||||
|
||||
#define SYSBARBUTTON_TARGET(ITEM, TARGET, SELECTOR) [[UIBarButtonItem alloc] initWithBarButtonSystemItem:ITEM target:TARGET action:SELECTOR]
|
||||
#define BARBUTTON_TARGET(TITLE, TARGET, SELECTOR) [[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:TARGET action:SELECTOR]
|
||||
|
||||
#pragma mark - Platform
|
||||
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
|
||||
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
|
||||
|
||||
#pragma mark - Orientation
|
||||
// #define IS_PORTRAIT UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation)
|
||||
// #define IS_PORTRAIT UIDeviceOrientationIsPortrait(self.interfaceOrientation)
|
||||
// #define IS_PORTRAIT UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation) || UIDeviceOrientationIsPortrait(self.interfaceOrientation)
|
||||
|
||||
#pragma mark - Debug
|
||||
#define BOOL_CHECK(TITLE, CHECK_ITEM) printf("%s: %s\n", TITLE, (CHECK_ITEM) ? "Yes" : "No")
|
||||
|
||||
#pragma mark - Geometry
|
||||
#define RECTCENTER(RECT) CGPointMake(CGRectGetMidX(RECT), CGRectGetMidY(RECT))
|
||||
#define RESIZABLE(VIEW) [VIEW setAutoresizingMask:UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth]
|
||||
|
||||
#pragma mark - Strings
|
||||
#define STREQ(STRING1, STRING2) ([STRING1 caseInsensitiveCompare:STRING2] == NSOrderedSame)
|
||||
#define PREFIXED(STRING1, STRING2) ([[STRING1 uppercaseString] hasPrefix:[STRING2 uppercaseString]])
|
||||
#define TRIMSTRING(STRING) ([STRING stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]])
|
||||
#define STRDATA(STRING) ([STRING dataUsingEncoding:NSUTF8StringEncoding])
|
||||
#define DATASTR(DATA) ([[NSString alloc] initWithData:DATA encoding:NSUTF8StringEncoding])
|
||||
|
||||
#pragma mark - Constraints
|
||||
#define PREPCONSTRAINTS(VIEW) [VIEW setTranslatesAutoresizingMaskIntoConstraints:NO]
|
||||
#define CONSTRAIN(PARENT, VIEW, FORMAT) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(FORMAT) options:0 metrics:nil views:NSDictionaryOfVariableBindings(VIEW)]]
|
||||
#define CONSTRAIN_VIEWS(PARENT, FORMAT, BINDINGS) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(FORMAT) options:0 metrics:nil views:BINDINGS]]
|
||||
|
||||
// Stretch across axes
|
||||
#define STRETCH_VIEW_H(PARENT, VIEW) CONSTRAIN(PARENT, VIEW, @"H:|["#VIEW"(>=0)]|")
|
||||
#define STRETCH_VIEW_V(PARENT, VIEW) CONSTRAIN(PARENT, VIEW, @"V:|["#VIEW"(>=0)]|")
|
||||
#define STRETCH_VIEW(PARENT, VIEW) {STRETCH_VIEW_H(PARENT, VIEW); STRETCH_VIEW_V(PARENT, VIEW);}
|
||||
|
||||
// Center along axes
|
||||
#define CENTER_VIEW_H(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeCenterX multiplier:1.0f constant:0.0f]]
|
||||
#define CENTER_VIEW_V(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeCenterY multiplier:1.0f constant:0.0f]]
|
||||
#define CENTER_VIEW(PARENT, VIEW) {CENTER_VIEW_H(PARENT, VIEW); CENTER_VIEW_V(PARENT, VIEW);}
|
||||
|
||||
// Align to parent
|
||||
#define ALIGN_VIEW_LEFT(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeLeft multiplier:1.0f constant:0.0f]]
|
||||
#define ALIGN_VIEW_RIGHT(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeRight multiplier:1.0f constant:0.0f]]
|
||||
#define ALIGN_VIEW_TOP(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeTop multiplier:1.0f constant:0.0f]]
|
||||
#define ALIGN_VIEW_BOTTOM(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeBottom multiplier:1.0f constant:0.0f]]
|
||||
|
||||
// Set Size
|
||||
#define CONSTRAIN_WIDTH(VIEW, WIDTH) CONSTRAIN(VIEW, VIEW, @"H:["#VIEW"(=="#WIDTH")]")
|
||||
#define CONSTRAIN_HEIGHT(VIEW, HEIGHT) CONSTRAIN(VIEW, VIEW, @"V:["#VIEW"(=="#HEIGHT")]")
|
||||
#define CONSTRAIN_SIZE(VIEW, HEIGHT, WIDTH) {CONSTRAIN_WIDTH(VIEW, WIDTH); CONSTRAIN_HEIGHT(VIEW, HEIGHT);}
|
||||
|
||||
// Set Aspect
|
||||
#define CONSTRAIN_ASPECT(VIEW, ASPECT) [VIEW addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:VIEW attribute:NSLayoutAttributeHeight multiplier:(ASPECT) constant:0.0f]]
|
||||
|
||||
// Order items
|
||||
#define CONSTRAIN_ORDER_H(PARENT, VIEW1, VIEW2) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(@"H:["#VIEW1"]->=0-["#VIEW2"]") options:0 metrics:nil views:NSDictionaryOfVariableBindings(VIEW1, VIEW2)]]
|
||||
#define CONSTRAIN_ORDER_V(PARENT, VIEW1, VIEW2) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(@"V:["#VIEW1"]->=0-["#VIEW2"]") options:0 metrics:nil views:NSDictionaryOfVariableBindings(VIEW1, VIEW2)]]
|
||||
|
||||
#pragma mark - Util
|
||||
|
||||
// Bail with complaint
|
||||
#define COMPLAIN_AND_BAIL(_COMPLAINT_, _ARG_) {NSLog(_COMPLAINT_, _ARG_); return;}
|
||||
#define COMPLAIN_AND_BAIL_NIL(_COMPLAINT_, _ARG_) {NSLog(_COMPLAINT_, _ARG_); return nil;}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
Erica Sadun, http://ericasadun.com
|
||||
iPhone Developer's Cookbook, 6.x Edition
|
||||
BSD License, Use at your own risk
|
||||
*/
|
||||
|
||||
UIImage *blockImage(NSString *aString)
|
||||
{
|
||||
UIFont *font = [UIFont fontWithName:@"Futura" size:96.0f];
|
||||
CGSize size = [aString sizeWithFont:font];
|
||||
size.width += 40.0f;
|
||||
size.height += 40.0f;
|
||||
|
||||
UIGraphicsBeginImageContext(size);
|
||||
CGContextRef context = UIGraphicsGetCurrentContext();
|
||||
|
||||
CGRect bounds = (CGRect){.size = size};
|
||||
|
||||
[[UIColor whiteColor] set];
|
||||
CGContextAddRect(context, bounds);
|
||||
CGContextFillPath(context);
|
||||
|
||||
[[UIColor blackColor] set];
|
||||
bounds = CGRectInset(bounds, 8.0f, 8.0f);
|
||||
CGContextAddRect(context, bounds);
|
||||
CGContextSetLineWidth(context, 8.0f);
|
||||
CGContextStrokePath(context);
|
||||
|
||||
[[UIColor redColor] set];
|
||||
bounds = CGRectInset(bounds, 8.0f, 8.0f);
|
||||
[aString drawInRect:bounds withFont:font lineBreakMode:NSLineBreakByCharWrapping alignment:NSTextAlignmentCenter];
|
||||
|
||||
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
|
||||
UIGraphicsEndImageContext();
|
||||
|
||||
return newImage;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
||||
228
C02 - Documents/04 - Activity Controller/HelloWorld/main.m
Normal file
@@ -0,0 +1,228 @@
|
||||
/*
|
||||
Erica Sadun, http://ericasadun.com
|
||||
iPhone Developer's Cookbook, 6.x Edition
|
||||
BSD License, Use at your own risk
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "Utility.h"
|
||||
|
||||
@interface TextViewController : UIViewController
|
||||
@property (nonatomic, readonly) UITextView *textView;
|
||||
@property (nonatomic, weak) UIActivity *activity;
|
||||
@end
|
||||
|
||||
@implementation TextViewController
|
||||
- (void) done
|
||||
{
|
||||
[_activity activityDidFinish:YES];
|
||||
}
|
||||
|
||||
- (id) init
|
||||
{
|
||||
if (!(self = [super init])) return nil;
|
||||
_textView = [[UITextView alloc] init];
|
||||
_textView.font = [UIFont fontWithName:@"Futura" size:16.0f];
|
||||
_textView.editable = NO;
|
||||
|
||||
[self.view addSubview:_textView];
|
||||
PREPCONSTRAINTS(_textView);
|
||||
STRETCH_VIEW(self.view, _textView);
|
||||
|
||||
self.navigationItem.rightBarButtonItem = BARBUTTON(@"Done", @selector(done));
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
|
||||
@interface MyActivity : UIActivity
|
||||
@end
|
||||
@implementation MyActivity
|
||||
{
|
||||
NSArray *items;
|
||||
}
|
||||
|
||||
- (NSString *)activityType
|
||||
{
|
||||
return @"CustomActivityTypeListItemsAndTypes";
|
||||
}
|
||||
|
||||
- (NSString *) activityTitle
|
||||
{
|
||||
return @"List Items (Cookbook)";
|
||||
}
|
||||
|
||||
- (UIImage *) activityImage
|
||||
{
|
||||
CGFloat targetSize = IS_IPAD ? 72 : 57;
|
||||
CGFloat inset = targetSize * 0.15; // 15% inset for art
|
||||
|
||||
CGRect rect = CGRectMake(0.0f, 0.0f, targetSize, targetSize);
|
||||
UIGraphicsBeginImageContext(rect.size);
|
||||
|
||||
rect = CGRectInset(rect, inset, inset);
|
||||
UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect cornerRadius:4.0f];
|
||||
[path stroke];
|
||||
|
||||
rect = CGRectInset(rect, 0.0f, inset);
|
||||
[@"iOS" drawInRect:rect withFont:[UIFont fontWithName:@"Futura" size:IS_IPAD ? 18.0f : 12.0f] lineBreakMode:NSLineBreakByWordWrapping alignment:NSTextAlignmentCenter];
|
||||
|
||||
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
|
||||
UIGraphicsEndImageContext();
|
||||
|
||||
return image;
|
||||
}
|
||||
|
||||
- (BOOL)canPerformWithActivityItems:(NSArray *)activityItems
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)prepareWithActivityItems:(NSArray *)activityItems
|
||||
{
|
||||
items = activityItems;
|
||||
}
|
||||
|
||||
- (UIViewController *) activityViewController
|
||||
{
|
||||
TextViewController *tv = [[TextViewController alloc] init];
|
||||
tv.activity = self;
|
||||
UITextView *textView = tv.textView;
|
||||
|
||||
|
||||
NSMutableString *string = [NSMutableString string];
|
||||
for (id item in items)
|
||||
[string appendFormat:@"%@: %@\n", [item class], [item description]];
|
||||
textView.text = string;
|
||||
|
||||
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:tv];
|
||||
return nav;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@interface TestBedViewController : UIViewController <UIActivityItemSource, UIPopoverControllerDelegate>
|
||||
@end
|
||||
|
||||
@implementation TestBedViewController
|
||||
{
|
||||
UIImageView *imageView;
|
||||
UIPopoverController *popover;
|
||||
}
|
||||
|
||||
#pragma mark - Utility
|
||||
- (void) presentViewController:(UIViewController *)viewControllerToPresent
|
||||
{
|
||||
if (popover) [popover dismissPopoverAnimated:NO];
|
||||
|
||||
if (IS_IPHONE)
|
||||
{
|
||||
[self presentViewController:viewControllerToPresent animated:YES completion:nil];
|
||||
}
|
||||
else
|
||||
{
|
||||
popover = [[UIPopoverController alloc] initWithContentViewController:viewControllerToPresent];
|
||||
popover.delegate = self;
|
||||
[popover presentPopoverFromBarButtonItem:self.navigationItem.leftBarButtonItem
|
||||
permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
|
||||
}
|
||||
}
|
||||
|
||||
// Popover was dismissed
|
||||
- (void)popoverControllerDidDismissPopover:(UIPopoverController *)aPopoverController
|
||||
{
|
||||
popover = nil;
|
||||
}
|
||||
|
||||
#pragma mark - Activity -
|
||||
|
||||
- (id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType
|
||||
{
|
||||
return imageView.image;
|
||||
}
|
||||
|
||||
- (id)activityViewControllerPlaceholderItem:(UIActivityViewController *)activityViewController
|
||||
{
|
||||
return imageView.image;
|
||||
}
|
||||
|
||||
- (void) action
|
||||
{
|
||||
// Self adopts the UIActivityItemSource Protocol
|
||||
// UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:@[self] applicationActivities:nil];
|
||||
|
||||
// Or supply the item(s) directly
|
||||
// UIImage *secondImage = [UIImage imageNamed:@"Default.png"];
|
||||
// UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:@[imageView.image, secondImage] applicationActivities:nil];
|
||||
|
||||
// Or roll your own activity
|
||||
UIImage *secondImage = [UIImage imageNamed:@"Default.png"];
|
||||
UIActivity *appActivity = [[MyActivity alloc] init];
|
||||
UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:@[imageView.image, secondImage] applicationActivities:@[appActivity]];
|
||||
|
||||
// String
|
||||
// UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:@[@"Hello", @"World"]applicationActivities:nil];
|
||||
|
||||
// array, dictionary, date, number, url
|
||||
// UIColor *color = [UIColor redColor];
|
||||
// NSURL *url = [NSURL URLWithString:@"http://ericasadun.com"];
|
||||
// NSArray *testArray = @[@"z", @"y", @"x"];
|
||||
// NSDate *date = [NSDate date];
|
||||
// NSDictionary *dict = @{@"hello":@"world"};
|
||||
// NSDictionary *dict = @{@"Hello":[UIColor greenColor]};
|
||||
|
||||
// UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:@[imageView.image] applicationActivities:nil];
|
||||
|
||||
[self presentViewController:activity];
|
||||
}
|
||||
|
||||
- (void) abc {imageView.image = blockImage(@" abc ");}
|
||||
- (void) def {imageView.image = blockImage(@" def ");}
|
||||
- (void) ghi {imageView.image = blockImage(@" ghi ");}
|
||||
|
||||
- (void) loadView
|
||||
{
|
||||
[super loadView];
|
||||
self.view.backgroundColor = [UIColor whiteColor];
|
||||
self.navigationItem.leftBarButtonItem = SYSBARBUTTON(UIBarButtonSystemItemAction, @selector(action));
|
||||
self.navigationItem.rightBarButtonItems = @[
|
||||
BARBUTTON(@"ghi", @selector(ghi)),
|
||||
BARBUTTON(@"def", @selector(def)),
|
||||
BARBUTTON(@"abc", @selector(abc)),
|
||||
];
|
||||
|
||||
imageView = [[UIImageView alloc] initWithImage:blockImage(@" abc ")];
|
||||
imageView.contentMode = UIViewContentModeCenter;
|
||||
[self.view addSubview:imageView];
|
||||
PREPCONSTRAINTS(imageView);
|
||||
STRETCH_VIEW(self.view, imageView);
|
||||
}
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
|
||||
#pragma mark Application Setup
|
||||
@interface TestBedAppDelegate : NSObject <UIApplicationDelegate>
|
||||
{
|
||||
UIWindow *window;
|
||||
}
|
||||
@end
|
||||
@implementation TestBedAppDelegate
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
// [application setStatusBarHidden:YES];
|
||||
[[UINavigationBar appearance] setTintColor:COOKBOOK_PURPLE_COLOR];
|
||||
|
||||
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
TestBedViewController *tbvc = [[TestBedViewController alloc] init];
|
||||
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:tbvc];
|
||||
window.rootViewController = nav;
|
||||
[window makeKeyAndVisible];
|
||||
return YES;
|
||||
}
|
||||
@end
|
||||
int main(int argc, char *argv[]) {
|
||||
@autoreleasepool {
|
||||
int retVal = UIApplicationMain(argc, argv, nil, @"TestBedAppDelegate");
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
BIN
C02 - Documents/05 - QuickLook/.DS_Store
vendored
Normal file
BIN
C02 - Documents/05 - QuickLook/AppArt/.DS_Store
vendored
Normal file
|
After Width: | Height: | Size: 412 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Default-Landscape~ipad.png
Normal file
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 567 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Default-Portrait~ipad.png
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Default.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Default@2x.png
Normal file
|
After Width: | Height: | Size: 223 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon-144.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon-72.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon-Small-100.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon-Small-50.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon-Small.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon-Small@2x.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon@2x.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon~ipad.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
C02 - Documents/05 - QuickLook/AppArt/Icon~ipad@2x.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,309 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
8E69FEDF15D038FE00294D92 /* QuickLook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E69FEDE15D038FE00294D92 /* QuickLook.framework */; };
|
||||
8EB9BF0E158B9B4800F96828 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF0D158B9B4800F96828 /* Icon.png */; };
|
||||
8EB9BF19158B9B7900F96828 /* Default-Landscape@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */; };
|
||||
8EB9BF1A158B9B7900F96828 /* Default-Landscape~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */; };
|
||||
8EB9BF1B158B9B7900F96828 /* Default-Portrait@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */; };
|
||||
8EB9BF1C158B9B7900F96828 /* Default-Portrait~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */; };
|
||||
8EB9BF1D158B9B7900F96828 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF14158B9B7900F96828 /* Default.png */; };
|
||||
8EB9BF1E158B9B7900F96828 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF15158B9B7900F96828 /* Default@2x.png */; };
|
||||
8EB9BF1F158B9B7900F96828 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF16158B9B7900F96828 /* Icon@2x.png */; };
|
||||
8EB9BF20158B9B7900F96828 /* Icon~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF17158B9B7900F96828 /* Icon~ipad.png */; };
|
||||
8EB9BF21158B9B7900F96828 /* Icon~ipad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */; };
|
||||
8EF624E115892BA600A81FD2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E015892BA600A81FD2 /* UIKit.framework */; };
|
||||
8EF624E315892BA600A81FD2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E215892BA600A81FD2 /* Foundation.framework */; };
|
||||
8EF624E515892BA600A81FD2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E415892BA600A81FD2 /* CoreGraphics.framework */; };
|
||||
8EF624EB15892BA600A81FD2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8EF624E915892BA600A81FD2 /* InfoPlist.strings */; };
|
||||
8EF624ED15892BA600A81FD2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EF624EC15892BA600A81FD2 /* main.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
8E69FEDE15D038FE00294D92 /* QuickLook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickLook.framework; path = System/Library/Frameworks/QuickLook.framework; sourceTree = SDKROOT; };
|
||||
8EB9BF0D158B9B4800F96828 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon.png; path = AppArt/Icon.png; sourceTree = "<group>"; };
|
||||
8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Landscape@2x~ipad.png"; path = "AppArt/Default-Landscape@2x~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Landscape~ipad.png"; path = "AppArt/Default-Landscape~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Portrait@2x~ipad.png"; path = "AppArt/Default-Portrait@2x~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Portrait~ipad.png"; path = "AppArt/Default-Portrait~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF14158B9B7900F96828 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = AppArt/Default.png; sourceTree = "<group>"; };
|
||||
8EB9BF15158B9B7900F96828 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "AppArt/Default@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF16158B9B7900F96828 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon@2x.png"; path = "AppArt/Icon@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF17158B9B7900F96828 /* Icon~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad.png"; path = "AppArt/Icon~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad@2x.png"; path = "AppArt/Icon~ipad@2x.png"; sourceTree = "<group>"; };
|
||||
8EE9B88F15B746C400F4FCCA /* Utility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Utility.h; sourceTree = "<group>"; };
|
||||
8EF624DC15892BA600A81FD2 /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8EF624E015892BA600A81FD2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
8EF624E215892BA600A81FD2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
8EF624E415892BA600A81FD2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
8EF624E815892BA600A81FD2 /* HelloWorld-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HelloWorld-Info.plist"; sourceTree = "<group>"; };
|
||||
8EF624EA15892BA600A81FD2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
8EF624EC15892BA600A81FD2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = main.m; path = HelloWorld/main.m; sourceTree = "<group>"; };
|
||||
8EF624EE15892BA600A81FD2 /* HelloWorld-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HelloWorld-Prefix.pch"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8EF624D915892BA600A81FD2 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8E69FEDF15D038FE00294D92 /* QuickLook.framework in Frameworks */,
|
||||
8EF624E115892BA600A81FD2 /* UIKit.framework in Frameworks */,
|
||||
8EF624E315892BA600A81FD2 /* Foundation.framework in Frameworks */,
|
||||
8EF624E515892BA600A81FD2 /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
8EF624D115892BA600A81FD2 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624EC15892BA600A81FD2 /* main.m */,
|
||||
8EF624E715892BA600A81FD2 /* Supporting Files */,
|
||||
8EF624DF15892BA600A81FD2 /* Frameworks */,
|
||||
8EF624DD15892BA600A81FD2 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624DD15892BA600A81FD2 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624DC15892BA600A81FD2 /* HelloWorld.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624DF15892BA600A81FD2 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8E69FEDE15D038FE00294D92 /* QuickLook.framework */,
|
||||
8EF624E015892BA600A81FD2 /* UIKit.framework */,
|
||||
8EF624E215892BA600A81FD2 /* Foundation.framework */,
|
||||
8EF624E415892BA600A81FD2 /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624E715892BA600A81FD2 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EE9B88F15B746C400F4FCCA /* Utility.h */,
|
||||
8EF6250B15892CDA00A81FD2 /* System Art */,
|
||||
8EF624E815892BA600A81FD2 /* HelloWorld-Info.plist */,
|
||||
8EF624E915892BA600A81FD2 /* InfoPlist.strings */,
|
||||
8EF624EE15892BA600A81FD2 /* HelloWorld-Prefix.pch */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
path = HelloWorld;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF6250B15892CDA00A81FD2 /* System Art */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EB9BF0D158B9B4800F96828 /* Icon.png */,
|
||||
8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */,
|
||||
8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */,
|
||||
8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */,
|
||||
8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */,
|
||||
8EB9BF14158B9B7900F96828 /* Default.png */,
|
||||
8EB9BF15158B9B7900F96828 /* Default@2x.png */,
|
||||
8EB9BF16158B9B7900F96828 /* Icon@2x.png */,
|
||||
8EB9BF17158B9B7900F96828 /* Icon~ipad.png */,
|
||||
8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */,
|
||||
);
|
||||
name = "System Art";
|
||||
path = ..;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8EF624DB15892BA600A81FD2 /* HelloWorld */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 8EF624F415892BA600A81FD2 /* Build configuration list for PBXNativeTarget "HelloWorld" */;
|
||||
buildPhases = (
|
||||
8EF624D815892BA600A81FD2 /* Sources */,
|
||||
8EF624D915892BA600A81FD2 /* Frameworks */,
|
||||
8EF624DA15892BA600A81FD2 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = HelloWorld;
|
||||
productName = HelloWorld;
|
||||
productReference = 8EF624DC15892BA600A81FD2 /* HelloWorld.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
8EF624D315892BA600A81FD2 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0450;
|
||||
ORGANIZATIONNAME = "Erica Sadun";
|
||||
};
|
||||
buildConfigurationList = 8EF624D615892BA600A81FD2 /* Build configuration list for PBXProject "HelloWorld" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 8EF624D115892BA600A81FD2;
|
||||
productRefGroup = 8EF624DD15892BA600A81FD2 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8EF624DB15892BA600A81FD2 /* HelloWorld */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8EF624DA15892BA600A81FD2 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624EB15892BA600A81FD2 /* InfoPlist.strings in Resources */,
|
||||
8EB9BF0E158B9B4800F96828 /* Icon.png in Resources */,
|
||||
8EB9BF19158B9B7900F96828 /* Default-Landscape@2x~ipad.png in Resources */,
|
||||
8EB9BF1A158B9B7900F96828 /* Default-Landscape~ipad.png in Resources */,
|
||||
8EB9BF1B158B9B7900F96828 /* Default-Portrait@2x~ipad.png in Resources */,
|
||||
8EB9BF1C158B9B7900F96828 /* Default-Portrait~ipad.png in Resources */,
|
||||
8EB9BF1D158B9B7900F96828 /* Default.png in Resources */,
|
||||
8EB9BF1E158B9B7900F96828 /* Default@2x.png in Resources */,
|
||||
8EB9BF1F158B9B7900F96828 /* Icon@2x.png in Resources */,
|
||||
8EB9BF20158B9B7900F96828 /* Icon~ipad.png in Resources */,
|
||||
8EB9BF21158B9B7900F96828 /* Icon~ipad@2x.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8EF624D815892BA600A81FD2 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624ED15892BA600A81FD2 /* main.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
8EF624E915892BA600A81FD2 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
8EF624EA15892BA600A81FD2 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
8EF624F215892BA600A81FD2 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_ENABLE_OBJC_ARC = 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;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8EF624F315892BA600A81FD2 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_ENABLE_OBJC_ARC = 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;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
8EF624F515892BA600A81FD2 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "HelloWorld/HelloWorld-Prefix.pch";
|
||||
INFOPLIST_FILE = "HelloWorld/HelloWorld-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8EF624F615892BA600A81FD2 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "HelloWorld/HelloWorld-Prefix.pch";
|
||||
INFOPLIST_FILE = "HelloWorld/HelloWorld-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
8EF624D615892BA600A81FD2 /* Build configuration list for PBXProject "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8EF624F215892BA600A81FD2 /* Debug */,
|
||||
8EF624F315892BA600A81FD2 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
8EF624F415892BA600A81FD2 /* Build configuration list for PBXNativeTarget "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8EF624F515892BA600A81FD2 /* Debug */,
|
||||
8EF624F615892BA600A81FD2 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 8EF624D315892BA600A81FD2 /* Project object */;
|
||||
}
|
||||
7
C02 - Documents/05 - QuickLook/HelloWorld.xcodeproj/project.xcworkspace/contents.xcworkspacedata
generated
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:HelloWorld.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?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>HelloWorld.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
<key>8EF624DB15892BA600A81FD2</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/.DS_Store
vendored
Normal file
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Hand.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Hand.psd
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Hand@2x.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Icon-72.png
Normal file
|
After Width: | Height: | Size: 6.2 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Icon-Small-50.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Icon-Small.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Icon-Small@2x.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Icon.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/Icon@2x.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
C02 - Documents/05 - QuickLook/HelloWorld/Art/iTunesArtwork.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
@@ -0,0 +1,66 @@
|
||||
<?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>CFBundleIcons</key>
|
||||
<dict>
|
||||
<key>CFBundlePrimaryIcon</key>
|
||||
<dict>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array>
|
||||
<string>Icon.png</string>
|
||||
<string>Icon@2x.png</string>
|
||||
<string>Default.png</string>
|
||||
<string>Default@2x.png</string>
|
||||
<string>Icon~ipad.png</string>
|
||||
<string>Icon~ipad@2x.png</string>
|
||||
<string>Default-Portrait~ipad.png</string>
|
||||
<string>Default-Portrait@2x~ipad.png</string>
|
||||
<string>Default-Landscape~ipad.png</string>
|
||||
<string>Default-Landscape@2x~ipad.png</string>
|
||||
</array>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.sadun.${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>UIFileSharingEnabled</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>
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Prefix header for all source files of the 'HelloWorld' target in the 'HelloWorld' project
|
||||
//
|
||||
|
||||
#import <Availability.h>
|
||||
|
||||
#ifndef __IPHONE_3_0
|
||||
#warning "This project uses features only available in iOS SDK 3.0 and later."
|
||||
#endif
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
||||
80
C02 - Documents/05 - QuickLook/HelloWorld/Utility.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
Erica Sadun, http://ericasadun.com
|
||||
iPhone Developer's Cookbook, 6.x Edition
|
||||
BSD License, Use at your own risk
|
||||
*/
|
||||
|
||||
#pragma mark - Cookbook
|
||||
#define COOKBOOK_PURPLE_COLOR [UIColor colorWithRed:0.20392f green:0.19607f blue:0.61176f alpha:1.0f]
|
||||
|
||||
#pragma mark - Bar Buttons
|
||||
#define BARBUTTON(TITLE, SELECTOR) [[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:self action:SELECTOR]
|
||||
#define SYSBARBUTTON(ITEM, SELECTOR) [[UIBarButtonItem alloc] initWithBarButtonSystemItem:ITEM target:self action:SELECTOR]
|
||||
#define IMGBARBUTTON(IMAGE, SELECTOR) [[UIBarButtonItem alloc] initWithImage:IMAGE style:UIBarButtonItemStylePlain target:self action:SELECTOR]
|
||||
#define CUSTOMBARBUTTON(VIEW) [[UIBarButtonItem alloc] initWithCustomView:VIEW]
|
||||
|
||||
#define SYSBARBUTTON_TARGET(ITEM, TARGET, SELECTOR) [[UIBarButtonItem alloc] initWithBarButtonSystemItem:ITEM target:TARGET action:SELECTOR]
|
||||
#define BARBUTTON_TARGET(TITLE, TARGET, SELECTOR) [[UIBarButtonItem alloc] initWithTitle:TITLE style:UIBarButtonItemStylePlain target:TARGET action:SELECTOR]
|
||||
|
||||
#pragma mark - Platform
|
||||
#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
|
||||
#define IS_IPHONE (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
|
||||
|
||||
#pragma mark - Orientation
|
||||
// #define IS_PORTRAIT UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation)
|
||||
// #define IS_PORTRAIT UIDeviceOrientationIsPortrait(self.interfaceOrientation)
|
||||
// #define IS_PORTRAIT UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation) || UIDeviceOrientationIsPortrait(self.interfaceOrientation)
|
||||
|
||||
#pragma mark - Debug
|
||||
#define BOOL_CHECK(TITLE, CHECK_ITEM) printf("%s: %s\n", TITLE, (CHECK_ITEM) ? "Yes" : "No")
|
||||
|
||||
#pragma mark - Geometry
|
||||
#define RECTCENTER(RECT) CGPointMake(CGRectGetMidX(RECT), CGRectGetMidY(RECT))
|
||||
#define RESIZABLE(VIEW) [VIEW setAutoresizingMask:UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth]
|
||||
|
||||
#pragma mark - Strings
|
||||
#define STREQ(STRING1, STRING2) ([STRING1 caseInsensitiveCompare:STRING2] == NSOrderedSame)
|
||||
#define PREFIXED(STRING1, STRING2) ([[STRING1 uppercaseString] hasPrefix:[STRING2 uppercaseString]])
|
||||
#define TRIMSTRING(STRING) ([STRING stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]])
|
||||
#define STRDATA(STRING) ([STRING dataUsingEncoding:NSUTF8StringEncoding])
|
||||
#define DATASTR(DATA) ([[NSString alloc] initWithData:DATA encoding:NSUTF8StringEncoding])
|
||||
|
||||
#pragma mark - Constraints
|
||||
#define PREPCONSTRAINTS(VIEW) [VIEW setTranslatesAutoresizingMaskIntoConstraints:NO]
|
||||
#define CONSTRAIN(PARENT, VIEW, FORMAT) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(FORMAT) options:0 metrics:nil views:NSDictionaryOfVariableBindings(VIEW)]]
|
||||
#define CONSTRAIN_VIEWS(PARENT, FORMAT, BINDINGS) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(FORMAT) options:0 metrics:nil views:BINDINGS]]
|
||||
|
||||
// Stretch across axes
|
||||
#define STRETCH_VIEW_H(PARENT, VIEW) CONSTRAIN(PARENT, VIEW, @"H:|["#VIEW"(>=0)]|")
|
||||
#define STRETCH_VIEW_V(PARENT, VIEW) CONSTRAIN(PARENT, VIEW, @"V:|["#VIEW"(>=0)]|")
|
||||
#define STRETCH_VIEW(PARENT, VIEW) {STRETCH_VIEW_H(PARENT, VIEW); STRETCH_VIEW_V(PARENT, VIEW);}
|
||||
|
||||
// Center along axes
|
||||
#define CENTER_VIEW_H(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeCenterX relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeCenterX multiplier:1.0f constant:0.0f]]
|
||||
#define CENTER_VIEW_V(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeCenterY multiplier:1.0f constant:0.0f]]
|
||||
#define CENTER_VIEW(PARENT, VIEW) {CENTER_VIEW_H(PARENT, VIEW); CENTER_VIEW_V(PARENT, VIEW);}
|
||||
|
||||
// Align to parent
|
||||
#define ALIGN_VIEW_LEFT(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeLeft relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeLeft multiplier:1.0f constant:0.0f]]
|
||||
#define ALIGN_VIEW_RIGHT(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeRight relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeRight multiplier:1.0f constant:0.0f]]
|
||||
#define ALIGN_VIEW_TOP(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeTop multiplier:1.0f constant:0.0f]]
|
||||
#define ALIGN_VIEW_BOTTOM(PARENT, VIEW) [PARENT addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute: NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:PARENT attribute:NSLayoutAttributeBottom multiplier:1.0f constant:0.0f]]
|
||||
|
||||
// Set Size
|
||||
#define CONSTRAIN_WIDTH(VIEW, WIDTH) CONSTRAIN(VIEW, VIEW, @"H:["#VIEW"(=="#WIDTH")]")
|
||||
#define CONSTRAIN_HEIGHT(VIEW, HEIGHT) CONSTRAIN(VIEW, VIEW, @"V:["#VIEW"(=="#HEIGHT")]")
|
||||
#define CONSTRAIN_SIZE(VIEW, HEIGHT, WIDTH) {CONSTRAIN_WIDTH(VIEW, WIDTH); CONSTRAIN_HEIGHT(VIEW, HEIGHT);}
|
||||
|
||||
// Set Aspect
|
||||
#define CONSTRAIN_ASPECT(VIEW, ASPECT) [VIEW addConstraint:[NSLayoutConstraint constraintWithItem:VIEW attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:VIEW attribute:NSLayoutAttributeHeight multiplier:(ASPECT) constant:0.0f]]
|
||||
|
||||
// Order items
|
||||
#define CONSTRAIN_ORDER_H(PARENT, VIEW1, VIEW2) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(@"H:["#VIEW1"]->=0-["#VIEW2"]") options:0 metrics:nil views:NSDictionaryOfVariableBindings(VIEW1, VIEW2)]]
|
||||
#define CONSTRAIN_ORDER_V(PARENT, VIEW1, VIEW2) [PARENT addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:(@"V:["#VIEW1"]->=0-["#VIEW2"]") options:0 metrics:nil views:NSDictionaryOfVariableBindings(VIEW1, VIEW2)]]
|
||||
|
||||
#pragma mark - Util
|
||||
|
||||
// Bail with complaint
|
||||
#define COMPLAIN_AND_BAIL(_COMPLAINT_, _ARG_) {NSLog(_COMPLAINT_, _ARG_); return;}
|
||||
#define COMPLAIN_AND_BAIL_NIL(_COMPLAINT_, _ARG_) {NSLog(_COMPLAINT_, _ARG_); return nil;}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
||||
127
C02 - Documents/05 - QuickLook/HelloWorld/main.m
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
Erica Sadun, http://ericasadun.com
|
||||
iPhone Developer's Cookbook, 6.x Edition
|
||||
BSD License, Use at your own risk
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <QuickLook/QuickLook.h>
|
||||
#import "Utility.h"
|
||||
|
||||
@interface QuickItem : NSObject <QLPreviewItem>
|
||||
@property (nonatomic, strong) NSString *path;
|
||||
@property (readonly) NSString *previewItemTitle;
|
||||
@property (readonly) NSURL *previewItemURL;
|
||||
@end
|
||||
|
||||
@implementation QuickItem
|
||||
- (NSString *) previewItemTitle
|
||||
{
|
||||
return [_path lastPathComponent];
|
||||
}
|
||||
|
||||
- (NSURL *) previewItemURL
|
||||
{
|
||||
return [NSURL fileURLWithPath:_path];
|
||||
}
|
||||
@end
|
||||
|
||||
#define FILE_PATH [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/PDFSample.pdf"]
|
||||
|
||||
@interface TestBedViewController : UIViewController <QLPreviewControllerDataSource>
|
||||
@end
|
||||
|
||||
@implementation TestBedViewController
|
||||
- (NSInteger) numberOfPreviewItemsInPreviewController: (QLPreviewController *) controller
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
- (id <QLPreviewItem>) previewController: (QLPreviewController *) controller previewItemAtIndex: (NSInteger) index;
|
||||
{
|
||||
QuickItem *item = [[QuickItem alloc] init];
|
||||
item.path = FILE_PATH;
|
||||
return item;
|
||||
}
|
||||
|
||||
- (void) push
|
||||
{
|
||||
QLPreviewController *controller = [[QLPreviewController alloc] init];
|
||||
controller.dataSource = self;
|
||||
[self.navigationController pushViewController:controller animated:YES];
|
||||
}
|
||||
|
||||
- (void) present
|
||||
{
|
||||
QLPreviewController *controller = [[QLPreviewController alloc] init];
|
||||
controller.dataSource = self;
|
||||
[self presentViewController:controller animated:YES completion:nil];
|
||||
}
|
||||
|
||||
- (void) dumpToPDFFile
|
||||
{
|
||||
// Create a string
|
||||
NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:@"Hello World!"];
|
||||
NSRange range = NSMakeRange(0, string.length);
|
||||
|
||||
// Make the string center aligned and big
|
||||
NSMutableParagraphStyle *style = [[NSMutableParagraphStyle alloc] init];
|
||||
style.alignment = NSTextAlignmentCenter;
|
||||
[string addAttribute:NSParagraphStyleAttributeName value:style range:range];
|
||||
[string addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"Arial-BoldMT" size:36.0f] range:range];
|
||||
|
||||
// Load an image
|
||||
UIImage *image = [UIImage imageNamed:@"Default.png"];
|
||||
|
||||
// Create PDF
|
||||
CGRect theBounds = CGRectMake(0.0f, 0.0f, 480.0f, 600.0f);
|
||||
UIGraphicsBeginPDFContextToFile(FILE_PATH, theBounds, nil);
|
||||
UIGraphicsBeginPDFPage();
|
||||
[string drawInRect:CGRectMake(0.0f, 30.0f, 480.0f, 50.0f)];
|
||||
[image drawAtPoint:CGPointMake(80.0f, 80.0f)];
|
||||
UIGraphicsEndPDFContext();
|
||||
}
|
||||
|
||||
- (void) loadView
|
||||
{
|
||||
[super loadView];
|
||||
self.view.backgroundColor = [UIColor whiteColor];
|
||||
|
||||
self.navigationItem.rightBarButtonItem = BARBUTTON(@"Push", @selector(push));
|
||||
self.navigationItem.leftBarButtonItem = BARBUTTON(@"Present", @selector(present));
|
||||
|
||||
if (![[NSFileManager defaultManager] fileExistsAtPath:FILE_PATH])
|
||||
[[NSFileManager defaultManager] removeItemAtPath:FILE_PATH error:nil];
|
||||
|
||||
[self dumpToPDFFile];
|
||||
}
|
||||
@end
|
||||
|
||||
#pragma mark -
|
||||
|
||||
#pragma mark Application Setup
|
||||
@interface TestBedAppDelegate : NSObject <UIApplicationDelegate>
|
||||
{
|
||||
UIWindow *window;
|
||||
}
|
||||
@end
|
||||
@implementation TestBedAppDelegate
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
// [application setStatusBarHidden:YES];
|
||||
[[UINavigationBar appearance] setTintColor:COOKBOOK_PURPLE_COLOR];
|
||||
|
||||
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
TestBedViewController *tbvc = [[TestBedViewController alloc] init];
|
||||
UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:tbvc];
|
||||
window.rootViewController = nav;
|
||||
[window makeKeyAndVisible];
|
||||
return YES;
|
||||
}
|
||||
@end
|
||||
int main(int argc, char *argv[]) {
|
||||
@autoreleasepool {
|
||||
int retVal = UIApplicationMain(argc, argv, nil, @"TestBedAppDelegate");
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
BIN
C02 - Documents/06 - QuickLook Activity/.DS_Store
vendored
Normal file
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/.DS_Store
vendored
Normal file
|
After Width: | Height: | Size: 412 KiB |
|
After Width: | Height: | Size: 149 KiB |
|
After Width: | Height: | Size: 567 KiB |
|
After Width: | Height: | Size: 206 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Default.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Default@2x.png
Normal file
|
After Width: | Height: | Size: 223 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon-144.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon-72.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
|
After Width: | Height: | Size: 12 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon-Small-50.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon-Small.png
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon-Small@2x.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon@2x.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon~ipad.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/AppArt/Icon~ipad@2x.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
@@ -0,0 +1,343 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 46;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
8E69FEDF15D038FE00294D92 /* QuickLook.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E69FEDE15D038FE00294D92 /* QuickLook.framework */; };
|
||||
8E815C9E15EFD4D900EE30D8 /* QLActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E815C9D15EFD4D900EE30D8 /* QLActivity.m */; };
|
||||
8E815CA615EFD67F00EE30D8 /* QL.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E815CA115EFD67F00EE30D8 /* QL.png */; };
|
||||
8E815CA715EFD67F00EE30D8 /* QL@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E815CA215EFD67F00EE30D8 /* QL@2x.png */; };
|
||||
8E815CA815EFD67F00EE30D8 /* QLBase.psd in Resources */ = {isa = PBXBuildFile; fileRef = 8E815CA315EFD67F00EE30D8 /* QLBase.psd */; };
|
||||
8E815CA915EFD67F00EE30D8 /* QL~iPad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E815CA415EFD67F00EE30D8 /* QL~iPad.png */; };
|
||||
8E815CAA15EFD67F00EE30D8 /* QL~iPad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8E815CA515EFD67F00EE30D8 /* QL~iPad@2x.png */; };
|
||||
8EB9BF0E158B9B4800F96828 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF0D158B9B4800F96828 /* Icon.png */; };
|
||||
8EB9BF19158B9B7900F96828 /* Default-Landscape@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */; };
|
||||
8EB9BF1A158B9B7900F96828 /* Default-Landscape~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */; };
|
||||
8EB9BF1B158B9B7900F96828 /* Default-Portrait@2x~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */; };
|
||||
8EB9BF1C158B9B7900F96828 /* Default-Portrait~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */; };
|
||||
8EB9BF1D158B9B7900F96828 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF14158B9B7900F96828 /* Default.png */; };
|
||||
8EB9BF1E158B9B7900F96828 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF15158B9B7900F96828 /* Default@2x.png */; };
|
||||
8EB9BF1F158B9B7900F96828 /* Icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF16158B9B7900F96828 /* Icon@2x.png */; };
|
||||
8EB9BF20158B9B7900F96828 /* Icon~ipad.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF17158B9B7900F96828 /* Icon~ipad.png */; };
|
||||
8EB9BF21158B9B7900F96828 /* Icon~ipad@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */; };
|
||||
8EF624E115892BA600A81FD2 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E015892BA600A81FD2 /* UIKit.framework */; };
|
||||
8EF624E315892BA600A81FD2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E215892BA600A81FD2 /* Foundation.framework */; };
|
||||
8EF624E515892BA600A81FD2 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8EF624E415892BA600A81FD2 /* CoreGraphics.framework */; };
|
||||
8EF624EB15892BA600A81FD2 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 8EF624E915892BA600A81FD2 /* InfoPlist.strings */; };
|
||||
8EF624ED15892BA600A81FD2 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 8EF624EC15892BA600A81FD2 /* main.m */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
8E69FEDE15D038FE00294D92 /* QuickLook.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuickLook.framework; path = System/Library/Frameworks/QuickLook.framework; sourceTree = SDKROOT; };
|
||||
8E815C9C15EFD4D900EE30D8 /* QLActivity.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = QLActivity.h; sourceTree = "<group>"; };
|
||||
8E815C9D15EFD4D900EE30D8 /* QLActivity.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = QLActivity.m; sourceTree = "<group>"; };
|
||||
8E815CA115EFD67F00EE30D8 /* QL.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = QL.png; sourceTree = "<group>"; };
|
||||
8E815CA215EFD67F00EE30D8 /* QL@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "QL@2x.png"; sourceTree = "<group>"; };
|
||||
8E815CA315EFD67F00EE30D8 /* QLBase.psd */ = {isa = PBXFileReference; lastKnownFileType = file; path = QLBase.psd; sourceTree = "<group>"; };
|
||||
8E815CA415EFD67F00EE30D8 /* QL~iPad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "QL~iPad.png"; sourceTree = "<group>"; };
|
||||
8E815CA515EFD67F00EE30D8 /* QL~iPad@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "QL~iPad@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF0D158B9B4800F96828 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon.png; path = AppArt/Icon.png; sourceTree = "<group>"; };
|
||||
8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Landscape@2x~ipad.png"; path = "AppArt/Default-Landscape@2x~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Landscape~ipad.png"; path = "AppArt/Default-Landscape~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Portrait@2x~ipad.png"; path = "AppArt/Default-Portrait@2x~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default-Portrait~ipad.png"; path = "AppArt/Default-Portrait~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF14158B9B7900F96828 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Default.png; path = AppArt/Default.png; sourceTree = "<group>"; };
|
||||
8EB9BF15158B9B7900F96828 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Default@2x.png"; path = "AppArt/Default@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF16158B9B7900F96828 /* Icon@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon@2x.png"; path = "AppArt/Icon@2x.png"; sourceTree = "<group>"; };
|
||||
8EB9BF17158B9B7900F96828 /* Icon~ipad.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad.png"; path = "AppArt/Icon~ipad.png"; sourceTree = "<group>"; };
|
||||
8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = "Icon~ipad@2x.png"; path = "AppArt/Icon~ipad@2x.png"; sourceTree = "<group>"; };
|
||||
8EE9B88F15B746C400F4FCCA /* Utility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Utility.h; sourceTree = "<group>"; };
|
||||
8EF624DC15892BA600A81FD2 /* HelloWorld.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HelloWorld.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
8EF624E015892BA600A81FD2 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
8EF624E215892BA600A81FD2 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
8EF624E415892BA600A81FD2 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
8EF624E815892BA600A81FD2 /* HelloWorld-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "HelloWorld-Info.plist"; sourceTree = "<group>"; };
|
||||
8EF624EA15892BA600A81FD2 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
||||
8EF624EC15892BA600A81FD2 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = main.m; path = HelloWorld/main.m; sourceTree = "<group>"; };
|
||||
8EF624EE15892BA600A81FD2 /* HelloWorld-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "HelloWorld-Prefix.pch"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8EF624D915892BA600A81FD2 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8E69FEDF15D038FE00294D92 /* QuickLook.framework in Frameworks */,
|
||||
8EF624E115892BA600A81FD2 /* UIKit.framework in Frameworks */,
|
||||
8EF624E315892BA600A81FD2 /* Foundation.framework in Frameworks */,
|
||||
8EF624E515892BA600A81FD2 /* CoreGraphics.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
8E815CA015EFD67F00EE30D8 /* QLArt */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8E815CA115EFD67F00EE30D8 /* QL.png */,
|
||||
8E815CA215EFD67F00EE30D8 /* QL@2x.png */,
|
||||
8E815CA315EFD67F00EE30D8 /* QLBase.psd */,
|
||||
8E815CA415EFD67F00EE30D8 /* QL~iPad.png */,
|
||||
8E815CA515EFD67F00EE30D8 /* QL~iPad@2x.png */,
|
||||
);
|
||||
path = QLArt;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624D115892BA600A81FD2 = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624EC15892BA600A81FD2 /* main.m */,
|
||||
8E815C9C15EFD4D900EE30D8 /* QLActivity.h */,
|
||||
8E815C9D15EFD4D900EE30D8 /* QLActivity.m */,
|
||||
8E815CA015EFD67F00EE30D8 /* QLArt */,
|
||||
8EF624E715892BA600A81FD2 /* Supporting Files */,
|
||||
8EF624DF15892BA600A81FD2 /* Frameworks */,
|
||||
8EF624DD15892BA600A81FD2 /* Products */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624DD15892BA600A81FD2 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EF624DC15892BA600A81FD2 /* HelloWorld.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624DF15892BA600A81FD2 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8E69FEDE15D038FE00294D92 /* QuickLook.framework */,
|
||||
8EF624E015892BA600A81FD2 /* UIKit.framework */,
|
||||
8EF624E215892BA600A81FD2 /* Foundation.framework */,
|
||||
8EF624E415892BA600A81FD2 /* CoreGraphics.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF624E715892BA600A81FD2 /* Supporting Files */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EE9B88F15B746C400F4FCCA /* Utility.h */,
|
||||
8EF6250B15892CDA00A81FD2 /* System Art */,
|
||||
8EF624E815892BA600A81FD2 /* HelloWorld-Info.plist */,
|
||||
8EF624E915892BA600A81FD2 /* InfoPlist.strings */,
|
||||
8EF624EE15892BA600A81FD2 /* HelloWorld-Prefix.pch */,
|
||||
);
|
||||
name = "Supporting Files";
|
||||
path = HelloWorld;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
8EF6250B15892CDA00A81FD2 /* System Art */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8EB9BF0D158B9B4800F96828 /* Icon.png */,
|
||||
8EB9BF10158B9B7900F96828 /* Default-Landscape@2x~ipad.png */,
|
||||
8EB9BF11158B9B7900F96828 /* Default-Landscape~ipad.png */,
|
||||
8EB9BF12158B9B7900F96828 /* Default-Portrait@2x~ipad.png */,
|
||||
8EB9BF13158B9B7900F96828 /* Default-Portrait~ipad.png */,
|
||||
8EB9BF14158B9B7900F96828 /* Default.png */,
|
||||
8EB9BF15158B9B7900F96828 /* Default@2x.png */,
|
||||
8EB9BF16158B9B7900F96828 /* Icon@2x.png */,
|
||||
8EB9BF17158B9B7900F96828 /* Icon~ipad.png */,
|
||||
8EB9BF18158B9B7900F96828 /* Icon~ipad@2x.png */,
|
||||
);
|
||||
name = "System Art";
|
||||
path = ..;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8EF624DB15892BA600A81FD2 /* HelloWorld */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 8EF624F415892BA600A81FD2 /* Build configuration list for PBXNativeTarget "HelloWorld" */;
|
||||
buildPhases = (
|
||||
8EF624D815892BA600A81FD2 /* Sources */,
|
||||
8EF624D915892BA600A81FD2 /* Frameworks */,
|
||||
8EF624DA15892BA600A81FD2 /* Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = HelloWorld;
|
||||
productName = HelloWorld;
|
||||
productReference = 8EF624DC15892BA600A81FD2 /* HelloWorld.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
8EF624D315892BA600A81FD2 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
attributes = {
|
||||
LastUpgradeCheck = 0450;
|
||||
ORGANIZATIONNAME = "Erica Sadun";
|
||||
};
|
||||
buildConfigurationList = 8EF624D615892BA600A81FD2 /* Build configuration list for PBXProject "HelloWorld" */;
|
||||
compatibilityVersion = "Xcode 3.2";
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
en,
|
||||
);
|
||||
mainGroup = 8EF624D115892BA600A81FD2;
|
||||
productRefGroup = 8EF624DD15892BA600A81FD2 /* Products */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
8EF624DB15892BA600A81FD2 /* HelloWorld */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
8EF624DA15892BA600A81FD2 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624EB15892BA600A81FD2 /* InfoPlist.strings in Resources */,
|
||||
8EB9BF0E158B9B4800F96828 /* Icon.png in Resources */,
|
||||
8EB9BF19158B9B7900F96828 /* Default-Landscape@2x~ipad.png in Resources */,
|
||||
8EB9BF1A158B9B7900F96828 /* Default-Landscape~ipad.png in Resources */,
|
||||
8EB9BF1B158B9B7900F96828 /* Default-Portrait@2x~ipad.png in Resources */,
|
||||
8EB9BF1C158B9B7900F96828 /* Default-Portrait~ipad.png in Resources */,
|
||||
8EB9BF1D158B9B7900F96828 /* Default.png in Resources */,
|
||||
8EB9BF1E158B9B7900F96828 /* Default@2x.png in Resources */,
|
||||
8EB9BF1F158B9B7900F96828 /* Icon@2x.png in Resources */,
|
||||
8EB9BF20158B9B7900F96828 /* Icon~ipad.png in Resources */,
|
||||
8EB9BF21158B9B7900F96828 /* Icon~ipad@2x.png in Resources */,
|
||||
8E815CA615EFD67F00EE30D8 /* QL.png in Resources */,
|
||||
8E815CA715EFD67F00EE30D8 /* QL@2x.png in Resources */,
|
||||
8E815CA815EFD67F00EE30D8 /* QLBase.psd in Resources */,
|
||||
8E815CA915EFD67F00EE30D8 /* QL~iPad.png in Resources */,
|
||||
8E815CAA15EFD67F00EE30D8 /* QL~iPad@2x.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8EF624D815892BA600A81FD2 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
8EF624ED15892BA600A81FD2 /* main.m in Sources */,
|
||||
8E815C9E15EFD4D900EE30D8 /* QLActivity.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXVariantGroup section */
|
||||
8EF624E915892BA600A81FD2 /* InfoPlist.strings */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
8EF624EA15892BA600A81FD2 /* en */,
|
||||
);
|
||||
name = InfoPlist.strings;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXVariantGroup section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
8EF624F215892BA600A81FD2 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_ENABLE_OBJC_ARC = 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;
|
||||
SDKROOT = iphoneos;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8EF624F315892BA600A81FD2 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
||||
CLANG_ENABLE_OBJC_ARC = 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;
|
||||
TARGETED_DEVICE_FAMILY = "1,2";
|
||||
VALIDATE_PRODUCT = YES;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
8EF624F515892BA600A81FD2 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "HelloWorld/HelloWorld-Prefix.pch";
|
||||
INFOPLIST_FILE = "HelloWorld/HelloWorld-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
8EF624F615892BA600A81FD2 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = "HelloWorld/HelloWorld-Prefix.pch";
|
||||
INFOPLIST_FILE = "HelloWorld/HelloWorld-Info.plist";
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
WRAPPER_EXTENSION = app;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
8EF624D615892BA600A81FD2 /* Build configuration list for PBXProject "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8EF624F215892BA600A81FD2 /* Debug */,
|
||||
8EF624F315892BA600A81FD2 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
8EF624F415892BA600A81FD2 /* Build configuration list for PBXNativeTarget "HelloWorld" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
8EF624F515892BA600A81FD2 /* Debug */,
|
||||
8EF624F615892BA600A81FD2 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 8EF624D315892BA600A81FD2 /* Project object */;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:HelloWorld.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.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 = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
<AdditionalOptions>
|
||||
</AdditionalOptions>
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
buildConfiguration = "Release"
|
||||
debugDocumentVersioning = "YES">
|
||||
<BuildableProductRunnable>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "8EF624DB15892BA600A81FD2"
|
||||
BuildableName = "HelloWorld.app"
|
||||
BlueprintName = "HelloWorld"
|
||||
ReferencedContainer = "container:HelloWorld.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildableProductRunnable>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
||||
@@ -0,0 +1,22 @@
|
||||
<?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>HelloWorld.xcscheme</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>SuppressBuildableAutocreation</key>
|
||||
<dict>
|
||||
<key>8EF624DB15892BA600A81FD2</key>
|
||||
<dict>
|
||||
<key>primary</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
BIN
C02 - Documents/06 - QuickLook Activity/HelloWorld/Art/.DS_Store
vendored
Normal file
BIN
C02 - Documents/06 - QuickLook Activity/HelloWorld/Art/Hand.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
C02 - Documents/06 - QuickLook Activity/HelloWorld/Art/Hand.psd
Normal file
|
After Width: | Height: | Size: 17 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 6.2 KiB |