Skip to content

Commit

Permalink
Added sample for rdar://14952597
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Sep 19, 2013
1 parent 244fc01 commit 156577a
Show file tree
Hide file tree
Showing 15 changed files with 716 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -12,6 +12,7 @@ Making a fresh app project designed to only demonstrate the issue and nothing mo
### New iOS 7 Bugs
- **CATiledLayerMemory**: [CATiledLayer Loses Visible Tiles on Memory Warning](http://www.cocoanetics.com/2013/09/welcome-to-ios-7-issues/)
- **RoundedRectArtifact**: [Rounded rect bezier path with radius 3 drawn with scale 1 produces visual artifacts](http://www.cocoanetics.com/2013/09/welcome-to-ios-7-issues/)
- **UIColorStrokeCrash**: [NSAttributeDictionary Returns Color that produces EXC_BAD_ACCESS on stroking](http://www.cocoanetics.com/2013/09/welcome-to-ios-7-issues/)

### Previous Bugs
- **InputViewScrollViewBug**: [UIScrollView Should Not Adjust Content Inset if it is Input View](http://www.cocoanetics.com/2013/05/radar-uiscrollview-should-not-adjust-content-inset-if-it-is-input-view/) (rdar://13836932)
Expand Down
326 changes: 326 additions & 0 deletions UIColorStrokeCrash/UIColorStrokeCrash.xcodeproj/project.pbxproj
@@ -0,0 +1,326 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
A73912AE17DF02E000D966B6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A73912AD17DF02E000D966B6 /* Foundation.framework */; };
A73912B017DF02E000D966B6 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A73912AF17DF02E000D966B6 /* CoreGraphics.framework */; };
A73912B217DF02E000D966B6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A73912B117DF02E000D966B6 /* UIKit.framework */; };
A73912B817DF02E000D966B6 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = A73912B617DF02E000D966B6 /* InfoPlist.strings */; };
A73912BA17DF02E000D966B6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A73912B917DF02E000D966B6 /* main.m */; };
A73912BE17DF02E000D966B6 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A73912BD17DF02E000D966B6 /* AppDelegate.m */; };
A73912C117DF02E000D966B6 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = A73912BF17DF02E000D966B6 /* Main.storyboard */; };
A73912C417DF02E000D966B6 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A73912C317DF02E000D966B6 /* ViewController.m */; };
A73912C617DF02E000D966B6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = A73912C517DF02E000D966B6 /* Images.xcassets */; };
A73912E417DF031200D966B6 /* ContentView.m in Sources */ = {isa = PBXBuildFile; fileRef = A73912E317DF031200D966B6 /* ContentView.m */; };
A73912E617DF032300D966B6 /* CoreText.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A73912E517DF032300D966B6 /* CoreText.framework */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
A73912AA17DF02E000D966B6 /* UIColorStrokeCrash.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = UIColorStrokeCrash.app; sourceTree = BUILT_PRODUCTS_DIR; };
A73912AD17DF02E000D966B6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
A73912AF17DF02E000D966B6 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
A73912B117DF02E000D966B6 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
A73912B517DF02E000D966B6 /* UIColorStrokeCrash-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "UIColorStrokeCrash-Info.plist"; sourceTree = "<group>"; };
A73912B717DF02E000D966B6 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
A73912B917DF02E000D966B6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A73912BB17DF02E000D966B6 /* UIColorStrokeCrash-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "UIColorStrokeCrash-Prefix.pch"; sourceTree = "<group>"; };
A73912BC17DF02E000D966B6 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
A73912BD17DF02E000D966B6 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
A73912C017DF02E000D966B6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
A73912C217DF02E000D966B6 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
A73912C317DF02E000D966B6 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
A73912C517DF02E000D966B6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
A73912CC17DF02E000D966B6 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
A73912E217DF031200D966B6 /* ContentView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ContentView.h; sourceTree = "<group>"; };
A73912E317DF031200D966B6 /* ContentView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ContentView.m; sourceTree = "<group>"; };
A73912E517DF032300D966B6 /* CoreText.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreText.framework; path = System/Library/Frameworks/CoreText.framework; sourceTree = SDKROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
A73912A717DF02E000D966B6 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A73912E617DF032300D966B6 /* CoreText.framework in Frameworks */,
A73912B017DF02E000D966B6 /* CoreGraphics.framework in Frameworks */,
A73912B217DF02E000D966B6 /* UIKit.framework in Frameworks */,
A73912AE17DF02E000D966B6 /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
A73912A117DF02E000D966B6 = {
isa = PBXGroup;
children = (
A73912B317DF02E000D966B6 /* UIColorStrokeCrash */,
A73912AC17DF02E000D966B6 /* Frameworks */,
A73912AB17DF02E000D966B6 /* Products */,
);
sourceTree = "<group>";
};
A73912AB17DF02E000D966B6 /* Products */ = {
isa = PBXGroup;
children = (
A73912AA17DF02E000D966B6 /* UIColorStrokeCrash.app */,
);
name = Products;
sourceTree = "<group>";
};
A73912AC17DF02E000D966B6 /* Frameworks */ = {
isa = PBXGroup;
children = (
A73912E517DF032300D966B6 /* CoreText.framework */,
A73912AD17DF02E000D966B6 /* Foundation.framework */,
A73912AF17DF02E000D966B6 /* CoreGraphics.framework */,
A73912B117DF02E000D966B6 /* UIKit.framework */,
A73912CC17DF02E000D966B6 /* XCTest.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
A73912B317DF02E000D966B6 /* UIColorStrokeCrash */ = {
isa = PBXGroup;
children = (
A73912BC17DF02E000D966B6 /* AppDelegate.h */,
A73912BD17DF02E000D966B6 /* AppDelegate.m */,
A73912BF17DF02E000D966B6 /* Main.storyboard */,
A73912C217DF02E000D966B6 /* ViewController.h */,
A73912C317DF02E000D966B6 /* ViewController.m */,
A73912E217DF031200D966B6 /* ContentView.h */,
A73912E317DF031200D966B6 /* ContentView.m */,
A73912C517DF02E000D966B6 /* Images.xcassets */,
A73912B417DF02E000D966B6 /* Supporting Files */,
);
path = UIColorStrokeCrash;
sourceTree = "<group>";
};
A73912B417DF02E000D966B6 /* Supporting Files */ = {
isa = PBXGroup;
children = (
A73912B517DF02E000D966B6 /* UIColorStrokeCrash-Info.plist */,
A73912B617DF02E000D966B6 /* InfoPlist.strings */,
A73912B917DF02E000D966B6 /* main.m */,
A73912BB17DF02E000D966B6 /* UIColorStrokeCrash-Prefix.pch */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
A73912A917DF02E000D966B6 /* UIColorStrokeCrash */ = {
isa = PBXNativeTarget;
buildConfigurationList = A73912DC17DF02E000D966B6 /* Build configuration list for PBXNativeTarget "UIColorStrokeCrash" */;
buildPhases = (
A73912A617DF02E000D966B6 /* Sources */,
A73912A717DF02E000D966B6 /* Frameworks */,
A73912A817DF02E000D966B6 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = UIColorStrokeCrash;
productName = UIColorStrokeCrash;
productReference = A73912AA17DF02E000D966B6 /* UIColorStrokeCrash.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
A73912A217DF02E000D966B6 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = Cocoanetics;
};
buildConfigurationList = A73912A517DF02E000D966B6 /* Build configuration list for PBXProject "UIColorStrokeCrash" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = A73912A117DF02E000D966B6;
productRefGroup = A73912AB17DF02E000D966B6 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
A73912A917DF02E000D966B6 /* UIColorStrokeCrash */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
A73912A817DF02E000D966B6 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A73912C617DF02E000D966B6 /* Images.xcassets in Resources */,
A73912B817DF02E000D966B6 /* InfoPlist.strings in Resources */,
A73912C117DF02E000D966B6 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
A73912A617DF02E000D966B6 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
A73912C417DF02E000D966B6 /* ViewController.m in Sources */,
A73912BE17DF02E000D966B6 /* AppDelegate.m in Sources */,
A73912E417DF031200D966B6 /* ContentView.m in Sources */,
A73912BA17DF02E000D966B6 /* main.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
A73912B617DF02E000D966B6 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
A73912B717DF02E000D966B6 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
A73912BF17DF02E000D966B6 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
A73912C017DF02E000D966B6 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
A73912DA17DF02E000D966B6 /* 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__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_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
};
name = Debug;
};
A73912DB17DF02E000D966B6 /* 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__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
ENABLE_NS_ASSERTIONS = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
};
name = Release;
};
A73912DD17DF02E000D966B6 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIColorStrokeCrash/UIColorStrokeCrash-Prefix.pch";
INFOPLIST_FILE = "UIColorStrokeCrash/UIColorStrokeCrash-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Debug;
};
A73912DE17DF02E000D966B6 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIColorStrokeCrash/UIColorStrokeCrash-Prefix.pch";
INFOPLIST_FILE = "UIColorStrokeCrash/UIColorStrokeCrash-Info.plist";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = app;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
A73912A517DF02E000D966B6 /* Build configuration list for PBXProject "UIColorStrokeCrash" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A73912DA17DF02E000D966B6 /* Debug */,
A73912DB17DF02E000D966B6 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
A73912DC17DF02E000D966B6 /* Build configuration list for PBXNativeTarget "UIColorStrokeCrash" */ = {
isa = XCConfigurationList;
buildConfigurations = (
A73912DD17DF02E000D966B6 /* Debug */,
A73912DE17DF02E000D966B6 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = A73912A217DF02E000D966B6 /* Project object */;
}
15 changes: 15 additions & 0 deletions UIColorStrokeCrash/UIColorStrokeCrash/AppDelegate.h
@@ -0,0 +1,15 @@
//
// AppDelegate.h
// UIColorStrokeCrash
//
// Created by Oliver Drobnik on 10.09.13.
// Copyright (c) 2013 Cocoanetics. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
46 changes: 46 additions & 0 deletions UIColorStrokeCrash/UIColorStrokeCrash/AppDelegate.m
@@ -0,0 +1,46 @@
//
// AppDelegate.m
// UIColorStrokeCrash
//
// Created by Oliver Drobnik on 10.09.13.
// Copyright (c) 2013 Cocoanetics. All rights reserved.
//

#import "AppDelegate.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end

0 comments on commit 156577a

Please sign in to comment.