diff --git a/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.h b/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.h index 010c2c3..813d501 100644 --- a/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.h +++ b/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.h @@ -81,3 +81,6 @@ typedef void (^RZSingleChildContainerViewControllerCompletionBlock)(void); - (UIView *)childContentContainerView; @end + + + diff --git a/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.m b/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.m index 44f2076..7de58bd 100644 --- a/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.m +++ b/RZUtils/Components/RZSingleChildContainerViewController/RZSingleChildContainerViewController.m @@ -45,6 +45,7 @@ @interface RZSingleChildContainerAlphaTransitioner : NSObject + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/AppDelegate.m b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/AppDelegate.m new file mode 100644 index 0000000..a35e145 --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/AppDelegate.m @@ -0,0 +1,68 @@ +// +// AppDelegate.m +// RZSingleChildTransitionBug +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import "AppDelegate.h" +#import "RZSingleChildContainerViewController.h" + +@interface AppDelegate () + +@property (weak, nonatomic) RZSingleChildContainerViewController *singleChildViewController; + +@end + +@implementation AppDelegate + + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { + // Override point for customization after application launch. + self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; + + RZSingleChildContainerViewController *singleChildVC = [[RZSingleChildContainerViewController alloc] init]; + self.window.rootViewController = singleChildVC; + self.singleChildViewController = singleChildVC; + [self.window makeKeyAndVisible]; + + UIViewController *viewController = [[UIViewController alloc] init]; + viewController.view.backgroundColor = [UIColor redColor]; + + UIViewController *viewController2 = [[UIViewController alloc] init]; + viewController2.view.backgroundColor = [UIColor blueColor]; + + UIViewController *viewController3 = [[UIViewController alloc] init]; + viewController3.view.backgroundColor = [UIColor greenColor]; + + [self.singleChildViewController setContentViewController:viewController animated:YES completion:nil]; + [self.singleChildViewController setContentViewController:viewController2 animated:YES completion:nil]; + [self.singleChildViewController setContentViewController:viewController3 animated:YES completion:nil]; + + 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 diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Base.lproj/LaunchScreen.xib b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..ccc95ca --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Images.xcassets/AppIcon.appiconset/Contents.json b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..118c98f --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Info.plist b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Info.plist new file mode 100644 index 0000000..cb6e89d --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/Info.plist @@ -0,0 +1,38 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.raizlabs.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/ViewController.h b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/ViewController.h new file mode 100644 index 0000000..86c54ac --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// RZSingleChildTransitionBug +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/ViewController.m b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/ViewController.m new file mode 100644 index 0000000..6610336 --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/ViewController.m @@ -0,0 +1,27 @@ +// +// ViewController.m +// RZSingleChildTransitionBug +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/main.m b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/main.m new file mode 100644 index 0000000..d935d79 --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBug/main.m @@ -0,0 +1,16 @@ +// +// main.m +// RZSingleChildTransitionBug +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBugTests/Info.plist b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBugTests/Info.plist new file mode 100644 index 0000000..3069a9e --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBugTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.raizlabs.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBugTests/RZSingleChildTransitionBugTests.m b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBugTests/RZSingleChildTransitionBugTests.m new file mode 100644 index 0000000..40c47fe --- /dev/null +++ b/Tests/RZSingleChildTransitionBug/RZSingleChildTransitionBugTests/RZSingleChildTransitionBugTests.m @@ -0,0 +1,40 @@ +// +// RZSingleChildTransitionBugTests.m +// RZSingleChildTransitionBugTests +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import +#import + +@interface RZSingleChildTransitionBugTests : XCTestCase + +@end + +@implementation RZSingleChildTransitionBugTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + XCTAssert(YES, @"Pass"); +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end diff --git a/Tests/RZUtilsTests.xcodeproj/project.pbxproj b/Tests/RZUtilsTests.xcodeproj/project.pbxproj index 6ec8de0..d108f4b 100644 --- a/Tests/RZUtilsTests.xcodeproj/project.pbxproj +++ b/Tests/RZUtilsTests.xcodeproj/project.pbxproj @@ -16,8 +16,29 @@ D4874DA119918C46003EEC4B /* RZAutoLayoutTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D4874DA019918C46003EEC4B /* RZAutoLayoutTests.m */; }; /* End PBXBuildFile section */ +/* Begin PBXContainerItemProxy section */ + 8A5A076F1AC1A0E000C6F7DF /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8A5A076A1AC1A0DF00C6F7DF /* RZSingleChildTransitionBug.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 8A5A07411AC1A0DF00C6F7DF; + remoteInfo = RZSingleChildTransitionBug; + }; + 8A5A07711AC1A0E000C6F7DF /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 8A5A076A1AC1A0DF00C6F7DF /* RZSingleChildTransitionBug.xcodeproj */; + proxyType = 2; + remoteGlobalIDString = 8A5A075A1AC1A0DF00C6F7DF; + remoteInfo = RZSingleChildTransitionBugTests; + }; +/* End PBXContainerItemProxy section */ + /* Begin PBXFileReference section */ 22BAB0697B95400AAAD3740C /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5803B47C971F7A07AA94BF3B /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = ""; }; + 8A5A076A1AC1A0DF00C6F7DF /* RZSingleChildTransitionBug.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RZSingleChildTransitionBug.xcodeproj; path = RZSingleChildTransitionBug/RZSingleChildTransitionBug.xcodeproj; sourceTree = ""; }; + 9102FF7D971233232FDB8D5B /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = ""; }; + 98E7E4BF710817E1D936B095 /* Pods.enterprise-qa.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods.enterprise-qa.xcconfig"; path = "Pods/Target Support Files/Pods/Pods.enterprise-qa.xcconfig"; sourceTree = ""; }; 9A8D4DD1196335CC00AFAB21 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 9A8D4DD3196335CC00AFAB21 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 9A8D4DD5196335CC00AFAB21 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; @@ -28,7 +49,6 @@ 9A8D4DFD196335CC00AFAB21 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 9A8D4EB4196336C500AFAB21 /* RZUtilsTests-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RZUtilsTests-Prefix.pch"; sourceTree = ""; }; 9A8D4EB51963431900AFAB21 /* RZBlockKVOTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RZBlockKVOTests.m; sourceTree = ""; }; - CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.xcconfig; path = Pods/Pods.xcconfig; sourceTree = ""; }; D4874DA019918C46003EEC4B /* RZAutoLayoutTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RZAutoLayoutTests.m; sourceTree = ""; }; /* End PBXFileReference section */ @@ -47,13 +67,33 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 0719D20A0A6BCEB0E93477F5 /* Pods */ = { + isa = PBXGroup; + children = ( + 9102FF7D971233232FDB8D5B /* Pods.debug.xcconfig */, + 5803B47C971F7A07AA94BF3B /* Pods.release.xcconfig */, + 98E7E4BF710817E1D936B095 /* Pods.enterprise-qa.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + 8A5A076B1AC1A0DF00C6F7DF /* Products */ = { + isa = PBXGroup; + children = ( + 8A5A07701AC1A0E000C6F7DF /* RZSingleChildTransitionBug.app */, + 8A5A07721AC1A0E000C6F7DF /* RZSingleChildTransitionBugTests.xctest */, + ); + name = Products; + sourceTree = ""; + }; 9A8D4DC5196335CC00AFAB21 = { isa = PBXGroup; children = ( + 8A5A076A1AC1A0DF00C6F7DF /* RZSingleChildTransitionBug.xcodeproj */, 9A8D4DF9196335CC00AFAB21 /* RZUtilsTests */, 9A8D4DD0196335CC00AFAB21 /* Frameworks */, 9A8D4DCF196335CC00AFAB21 /* Products */, - CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */, + 0719D20A0A6BCEB0E93477F5 /* Pods */, ); sourceTree = ""; }; @@ -140,6 +180,12 @@ mainGroup = 9A8D4DC5196335CC00AFAB21; productRefGroup = 9A8D4DCF196335CC00AFAB21 /* Products */; projectDirPath = ""; + projectReferences = ( + { + ProductGroup = 8A5A076B1AC1A0DF00C6F7DF /* Products */; + ProjectRef = 8A5A076A1AC1A0DF00C6F7DF /* RZSingleChildTransitionBug.xcodeproj */; + }, + ); projectRoot = ""; targets = ( 9A8D4DF1196335CC00AFAB21 /* RZUtilsTests */, @@ -147,6 +193,23 @@ }; /* End PBXProject section */ +/* Begin PBXReferenceProxy section */ + 8A5A07701AC1A0E000C6F7DF /* RZSingleChildTransitionBug.app */ = { + isa = PBXReferenceProxy; + fileType = wrapper.application; + path = RZSingleChildTransitionBug.app; + remoteRef = 8A5A076F1AC1A0E000C6F7DF /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; + 8A5A07721AC1A0E000C6F7DF /* RZSingleChildTransitionBugTests.xctest */ = { + isa = PBXReferenceProxy; + fileType = wrapper.cfbundle; + path = RZSingleChildTransitionBugTests.xctest; + remoteRef = 8A5A07711AC1A0E000C6F7DF /* PBXContainerItemProxy */; + sourceTree = BUILT_PRODUCTS_DIR; + }; +/* End PBXReferenceProxy section */ + /* Begin PBXResourcesBuildPhase section */ 9A8D4DF0196335CC00AFAB21 /* Resources */ = { isa = PBXResourcesBuildPhase; @@ -171,7 +234,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${SRCROOT}/Pods/Pods-resources.sh\"\n"; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n"; showEnvVarsInLog = 0; }; DFCEA1E42D714A99949F834D /* Check Pods Manifest.lock */ = { @@ -327,7 +390,7 @@ }; 9A8D4E09196335CC00AFAB21 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */; + baseConfigurationReference = 9102FF7D971233232FDB8D5B /* Pods.debug.xcconfig */; buildSettings = { FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", @@ -349,7 +412,7 @@ }; 9A8D4E0A196335CC00AFAB21 /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */; + baseConfigurationReference = 5803B47C971F7A07AA94BF3B /* Pods.release.xcconfig */; buildSettings = { FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", @@ -367,7 +430,7 @@ }; 9A8D4E0B196335CC00AFAB21 /* Enterprise-QA */ = { isa = XCBuildConfiguration; - baseConfigurationReference = CFC331EF976D4DEC8CB9094C /* Pods.xcconfig */; + baseConfigurationReference = 98E7E4BF710817E1D936B095 /* Pods.enterprise-qa.xcconfig */; buildSettings = { FRAMEWORK_SEARCH_PATHS = ( "$(SDKROOT)/Developer/Library/Frameworks", diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/AppDelegate.h b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/AppDelegate.h new file mode 100644 index 0000000..9a3eb1b --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/AppDelegate.h @@ -0,0 +1,17 @@ +// +// AppDelegate.h +// childViewControllerTransitionBugTest +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + + +@end + diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/AppDelegate.m b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/AppDelegate.m new file mode 100644 index 0000000..7a1f957 --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/AppDelegate.m @@ -0,0 +1,45 @@ +// +// AppDelegate.m +// childViewControllerTransitionBugTest +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import "AppDelegate.h" + +@interface AppDelegate () + +@end + +@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 diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Base.lproj/LaunchScreen.xib b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Base.lproj/LaunchScreen.xib new file mode 100644 index 0000000..e609e15 --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Base.lproj/Main.storyboard b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Base.lproj/Main.storyboard new file mode 100644 index 0000000..d912f9d --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Base.lproj/Main.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Images.xcassets/AppIcon.appiconset/Contents.json b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..118c98f --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,38 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Info.plist b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Info.plist new file mode 100644 index 0000000..4fb621f --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.raizlabs.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/ViewController.h b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/ViewController.h new file mode 100644 index 0000000..da952ed --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/ViewController.h @@ -0,0 +1,15 @@ +// +// ViewController.h +// childViewControllerTransitionBugTest +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + + +@end + diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/ViewController.m b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/ViewController.m new file mode 100644 index 0000000..baa30e8 --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/ViewController.m @@ -0,0 +1,27 @@ +// +// ViewController.m +// childViewControllerTransitionBugTest +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad { + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning { + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/main.m b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/main.m new file mode 100644 index 0000000..4c0c9cd --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTest/main.m @@ -0,0 +1,16 @@ +// +// main.m +// childViewControllerTransitionBugTest +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import +#import "AppDelegate.h" + +int main(int argc, char * argv[]) { + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } +} diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTestTests/Info.plist b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTestTests/Info.plist new file mode 100644 index 0000000..3069a9e --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTestTests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + com.raizlabs.$(PRODUCT_NAME:rfc1034identifier) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTestTests/childViewControllerTransitionBugTestTests.m b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTestTests/childViewControllerTransitionBugTestTests.m new file mode 100644 index 0000000..75ef96f --- /dev/null +++ b/Tests/childViewControllerTransitionBugTest/childViewControllerTransitionBugTestTests/childViewControllerTransitionBugTestTests.m @@ -0,0 +1,40 @@ +// +// childViewControllerTransitionBugTestTests.m +// childViewControllerTransitionBugTestTests +// +// Created by John Stricker on 3/24/15. +// Copyright (c) 2015 Raizlabs. All rights reserved. +// + +#import +#import + +@interface childViewControllerTransitionBugTestTests : XCTestCase + +@end + +@implementation childViewControllerTransitionBugTestTests + +- (void)setUp { + [super setUp]; + // Put setup code here. This method is called before the invocation of each test method in the class. +} + +- (void)tearDown { + // Put teardown code here. This method is called after the invocation of each test method in the class. + [super tearDown]; +} + +- (void)testExample { + // This is an example of a functional test case. + XCTAssert(YES, @"Pass"); +} + +- (void)testPerformanceExample { + // This is an example of a performance test case. + [self measureBlock:^{ + // Put the code you want to measure the time of here. + }]; +} + +@end