Navigation Menu

Skip to content

Commit

Permalink
PrintPhoto: Version 3.0, 2015-10-22
Browse files Browse the repository at this point in the history
Updated for iOS 9.0.

PrintPhoto demonstrates how to print photos in iOS 9.0 or later.
  • Loading branch information
Lax committed Dec 24, 2016
1 parent d27c6f3 commit 7e393bc
Show file tree
Hide file tree
Showing 20 changed files with 1,154 additions and 0 deletions.
42 changes: 42 additions & 0 deletions PrintPhoto/LICENSE.txt
@@ -0,0 +1,42 @@
Sample code project: PrintPhoto
Version: 3.0

IMPORTANT: This Apple software is supplied to you by Apple
Inc. ("Apple") in consideration of your agreement to the following
terms, and your use, installation, modification or redistribution of
this Apple software constitutes acceptance of these terms. If you do
not agree with these terms, please do not use, install, modify or
redistribute this Apple software.

In consideration of your agreement to abide by the following terms, and
subject to these terms, Apple grants you a personal, non-exclusive
license, under Apple's copyrights in this original Apple software (the
"Apple Software"), to use, reproduce, modify and redistribute the Apple
Software, with or without modifications, in source and/or binary forms;
provided that if you redistribute the Apple Software in its entirety and
without modifications, you must retain this notice and the following
text and disclaimers in all such redistributions of the Apple Software.
Neither the name, trademarks, service marks or logos of Apple Inc. may
be used to endorse or promote products derived from the Apple Software
without specific prior written permission from Apple. Except as
expressly stated in this notice, no other rights or licenses, express or
implied, are granted by Apple herein, including but not limited to any
patent rights that may be infringed by your derivative works or by other
works in which the Apple Software may be incorporated.

The Apple Software is provided by Apple on an "AS IS" basis. APPLE
MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION
THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND
OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.

IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION,
MODIFICATION AND/OR DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED
AND WHETHER UNDER THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE),
STRICT LIABILITY OR OTHERWISE, EVEN IF APPLE HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Copyright (C) 2015 Apple Inc. All Rights Reserved.
319 changes: 319 additions & 0 deletions PrintPhoto/PrintPhoto.xcodeproj/project.pbxproj
@@ -0,0 +1,319 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
3E14C3D21B867219003F3591 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E14C3D11B867219003F3591 /* AppDelegate.swift */; };
3E14C3D41B867219003F3591 /* CustomAssetPrintViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E14C3D31B867219003F3591 /* CustomAssetPrintViewController.swift */; };
3E14C3D71B867219003F3591 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3E14C3D51B867219003F3591 /* Main.storyboard */; };
3E14C3D91B867219003F3591 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3E14C3D81B867219003F3591 /* Assets.xcassets */; };
3E14C3DC1B867219003F3591 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3E14C3DA1B867219003F3591 /* LaunchScreen.storyboard */; };
3E14C3E51B868126003F3591 /* CustomAssetPrintPageRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E14C3E41B868126003F3591 /* CustomAssetPrintPageRenderer.swift */; settings = {ASSET_TAGS = (); }; };
3E1AC9721B8B75A2006FC729 /* StandardAssetPrintViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3E1AC9711B8B75A2006FC729 /* StandardAssetPrintViewController.swift */; settings = {ASSET_TAGS = (); }; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
3E14C3CE1B867219003F3591 /* PrintPhoto.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PrintPhoto.app; sourceTree = BUILT_PRODUCTS_DIR; };
3E14C3D11B867219003F3591 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3E14C3D31B867219003F3591 /* CustomAssetPrintViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomAssetPrintViewController.swift; sourceTree = "<group>"; };
3E14C3D61B867219003F3591 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3E14C3D81B867219003F3591 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3E14C3DB1B867219003F3591 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
3E14C3DD1B867219003F3591 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
3E14C3E31B86723E003F3591 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
3E14C3E41B868126003F3591 /* CustomAssetPrintPageRenderer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = CustomAssetPrintPageRenderer.swift; path = Assets.xcassets/CustomAssetPrintPageRenderer.swift; sourceTree = "<group>"; };
3E1AC9711B8B75A2006FC729 /* StandardAssetPrintViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StandardAssetPrintViewController.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
3E14C3CB1B867219003F3591 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3E14C3C51B867219003F3591 = {
isa = PBXGroup;
children = (
3E14C3E31B86723E003F3591 /* README.md */,
3E14C3D01B867219003F3591 /* PrintPhoto */,
3E14C3CF1B867219003F3591 /* Products */,
);
sourceTree = "<group>";
};
3E14C3CF1B867219003F3591 /* Products */ = {
isa = PBXGroup;
children = (
3E14C3CE1B867219003F3591 /* PrintPhoto.app */,
);
name = Products;
sourceTree = "<group>";
};
3E14C3D01B867219003F3591 /* PrintPhoto */ = {
isa = PBXGroup;
children = (
3E14C3D11B867219003F3591 /* AppDelegate.swift */,
3E1AC9701B8B745E006FC729 /* Standard Printing */,
3E1AC96F1B8B7458006FC729 /* Custom Asset Print Rendering */,
3E14C3D51B867219003F3591 /* Main.storyboard */,
3E14C3D81B867219003F3591 /* Assets.xcassets */,
3E14C3DA1B867219003F3591 /* LaunchScreen.storyboard */,
3E14C3DD1B867219003F3591 /* Info.plist */,
);
path = PrintPhoto;
sourceTree = "<group>";
};
3E1AC96F1B8B7458006FC729 /* Custom Asset Print Rendering */ = {
isa = PBXGroup;
children = (
3E14C3D31B867219003F3591 /* CustomAssetPrintViewController.swift */,
3E14C3E41B868126003F3591 /* CustomAssetPrintPageRenderer.swift */,
);
name = "Custom Asset Print Rendering";
sourceTree = "<group>";
};
3E1AC9701B8B745E006FC729 /* Standard Printing */ = {
isa = PBXGroup;
children = (
3E1AC9711B8B75A2006FC729 /* StandardAssetPrintViewController.swift */,
);
name = "Standard Printing";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
3E14C3CD1B867219003F3591 /* PrintPhoto */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3E14C3E01B867219003F3591 /* Build configuration list for PBXNativeTarget "PrintPhoto" */;
buildPhases = (
3E14C3CA1B867219003F3591 /* Sources */,
3E14C3CB1B867219003F3591 /* Frameworks */,
3E14C3CC1B867219003F3591 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = PrintPhoto;
productName = PrintPhoto;
productReference = 3E14C3CE1B867219003F3591 /* PrintPhoto.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
3E14C3C61B867219003F3591 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = "Apple Inc";
TargetAttributes = {
3E14C3CD1B867219003F3591 = {
CreatedOnToolsVersion = 7.0;
};
};
};
buildConfigurationList = 3E14C3C91B867219003F3591 /* Build configuration list for PBXProject "PrintPhoto" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 3E14C3C51B867219003F3591;
productRefGroup = 3E14C3CF1B867219003F3591 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3E14C3CD1B867219003F3591 /* PrintPhoto */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
3E14C3CC1B867219003F3591 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3E14C3DC1B867219003F3591 /* LaunchScreen.storyboard in Resources */,
3E14C3D91B867219003F3591 /* Assets.xcassets in Resources */,
3E14C3D71B867219003F3591 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
3E14C3CA1B867219003F3591 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3E14C3D41B867219003F3591 /* CustomAssetPrintViewController.swift in Sources */,
3E14C3D21B867219003F3591 /* AppDelegate.swift in Sources */,
3E1AC9721B8B75A2006FC729 /* StandardAssetPrintViewController.swift in Sources */,
3E14C3E51B868126003F3591 /* CustomAssetPrintPageRenderer.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
3E14C3D51B867219003F3591 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
3E14C3D61B867219003F3591 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
3E14C3DA1B867219003F3591 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
3E14C3DB1B867219003F3591 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
3E14C3DE1B867219003F3591 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
3E14C3DF1B867219003F3591 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
3E14C3E11B867219003F3591 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = PrintPhoto/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.example.apple-samplecode.PrintPhoto";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
3E14C3E21B867219003F3591 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = PrintPhoto/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.example.apple-samplecode.PrintPhoto";
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
3E14C3C91B867219003F3591 /* Build configuration list for PBXProject "PrintPhoto" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3E14C3DE1B867219003F3591 /* Debug */,
3E14C3DF1B867219003F3591 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3E14C3E01B867219003F3591 /* Build configuration list for PBXNativeTarget "PrintPhoto" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3E14C3E11B867219003F3591 /* Debug */,
3E14C3E21B867219003F3591 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 3E14C3C61B867219003F3591 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
</Bucket>

0 comments on commit 7e393bc

Please sign in to comment.