From c07d465ac8fca2cc98cb029c34cd88c28a96f687 Mon Sep 17 00:00:00 2001 From: Markus Emrich Date: Tue, 5 Nov 2013 11:09:09 +0100 Subject: [PATCH 1/2] refactoring + tap gesture recognizer to open & close side menu --- StatusBarTest/SHAppDelegate.m | 33 +-------- StatusBarTest/SHStatusBarViewController.m | 85 +++++++++++------------ 2 files changed, 41 insertions(+), 77 deletions(-) diff --git a/StatusBarTest/SHAppDelegate.m b/StatusBarTest/SHAppDelegate.m index 20919dd..5a50b10 100644 --- a/StatusBarTest/SHAppDelegate.m +++ b/StatusBarTest/SHAppDelegate.m @@ -14,40 +14,11 @@ @implementation SHAppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; - // Override point for customization after application launch. - self.window.backgroundColor = [UIColor greenColor]; + self.window.rootViewController = [[SHStatusBarViewController alloc] init]; + self.window.backgroundColor = [UIColor clearColor]; [self.window makeKeyAndVisible]; - self.window.rootViewController = [[SHStatusBarViewController alloc] initWithNibName:nil bundle: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/StatusBarTest/SHStatusBarViewController.m b/StatusBarTest/SHStatusBarViewController.m index c328148..4818a6f 100644 --- a/StatusBarTest/SHStatusBarViewController.m +++ b/StatusBarTest/SHStatusBarViewController.m @@ -9,71 +9,64 @@ #import "SHStatusBarViewController.h" @interface SHStatusBarViewController () - -@property (nonatomic, assign) BOOL hideStatusBar; -@property (nonatomic, strong) UIView *container; - +@property (nonatomic, assign) BOOL statusBarHidden; +@property (nonatomic, strong) UIView *containerView; +@property (nonatomic, strong) UIView *lastSnapShotView; @end @implementation SHStatusBarViewController -- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil -{ - self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; - if (self) { - // Custom initialization - - _hideStatusBar = NO; - - _container = [[UIView alloc] initWithFrame:self.view.bounds]; - [self.view addSubview:_container]; - - - self.view.backgroundColor = [UIColor redColor]; - - [self performSelector:@selector(doSlideOut) withObject:nil afterDelay:2.0]; - } - return self; -} - -- (void)viewDidLoad +- (void)viewDidLoad; { [super viewDidLoad]; - // Do any additional setup after loading the view. + + self.view.backgroundColor = [UIColor cyanColor]; + + _containerView = [[UIView alloc] initWithFrame:self.view.bounds]; + _containerView.backgroundColor = [UIColor magentaColor]; + [self.view addSubview:_containerView]; + + [self.view addGestureRecognizer:[[UITapGestureRecognizer alloc] + initWithTarget:self + action:@selector(showHideView:)]]; } -- (void)didReceiveMemoryWarning +- (UIView *)snapShotView { - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. + self.lastSnapShotView = [[UIScreen mainScreen] snapshotViewAfterScreenUpdates:NO]; + return self.lastSnapShotView; } -- (UIView *)getSnapShot +- (void)showHideView:(UITapGestureRecognizer*)recognizer { - return [[UIScreen mainScreen] snapshotViewAfterScreenUpdates:NO]; + if (self.containerView.frame.origin.x > 0) { + [UIView animateWithDuration:0.4 animations:^{ + [self.containerView setFrame:self.containerView.bounds]; + } completion:^(BOOL finished) { + self.statusBarHidden = NO; + [self.lastSnapShotView removeFromSuperview]; + self.lastSnapShotView = nil; + }]; + } else { + [self.containerView addSubview:[self snapShotView]]; + self.statusBarHidden = YES; + [UIView animateWithDuration:1.2 delay:0 usingSpringWithDamping:0.5 initialSpringVelocity:1.0 options:0 animations:^{ + [self.containerView setFrame:CGRectOffset(self.containerView.bounds, 240.0, 0.0)]; + } completion:nil]; + } } -- (void)doSlideOut +- (void)setStatusBarHidden:(BOOL)statusBarHidden; { - - [self.container addSubview:[self getSnapShot]]; - self.hideStatusBar = YES; - [self setNeedsStatusBarAppearanceUpdate]; - self.view.backgroundColor = [UIColor clearColor]; - [UIView animateWithDuration:0.5 animations:^{ - [self.container setFrame:(CGRect){ - 200, - 0, - self.container.frame.size - }]; - }]; - + if (_statusBarHidden != statusBarHidden) { + _statusBarHidden = statusBarHidden; + [self setNeedsStatusBarAppearanceUpdate]; + } } - - (BOOL)prefersStatusBarHidden { - return self.hideStatusBar; + return self.statusBarHidden; } @end From 730f1aa56d18fc76ac4c0f4b1d460b38f6113b39 Mon Sep 17 00:00:00 2001 From: Markus Emrich Date: Tue, 5 Nov 2013 11:12:42 +0100 Subject: [PATCH 2/2] removed unused files --- StatusBarTest.xcodeproj/project.pbxproj | 175 +----------------- StatusBarTest/en.lproj/InfoPlist.strings | 2 - .../StatusBarTestTests-Info.plist | 22 --- StatusBarTestTests/StatusBarTestTests.m | 34 ---- StatusBarTestTests/en.lproj/InfoPlist.strings | 2 - 5 files changed, 3 insertions(+), 232 deletions(-) delete mode 100644 StatusBarTest/en.lproj/InfoPlist.strings delete mode 100644 StatusBarTestTests/StatusBarTestTests-Info.plist delete mode 100644 StatusBarTestTests/StatusBarTestTests.m delete mode 100644 StatusBarTestTests/en.lproj/InfoPlist.strings diff --git a/StatusBarTest.xcodeproj/project.pbxproj b/StatusBarTest.xcodeproj/project.pbxproj index 2a11dab..f3ccd7d 100644 --- a/StatusBarTest.xcodeproj/project.pbxproj +++ b/StatusBarTest.xcodeproj/project.pbxproj @@ -10,45 +10,24 @@ 5C3C72B017F344A300BDA128 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3C72AF17F344A300BDA128 /* Foundation.framework */; }; 5C3C72B217F344A300BDA128 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3C72B117F344A300BDA128 /* CoreGraphics.framework */; }; 5C3C72B417F344A300BDA128 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3C72B317F344A300BDA128 /* UIKit.framework */; }; - 5C3C72BA17F344A300BDA128 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5C3C72B817F344A300BDA128 /* InfoPlist.strings */; }; 5C3C72BC17F344A300BDA128 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C3C72BB17F344A300BDA128 /* main.m */; }; 5C3C72C017F344A300BDA128 /* SHAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C3C72BF17F344A300BDA128 /* SHAppDelegate.m */; }; 5C3C72C217F344A300BDA128 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5C3C72C117F344A300BDA128 /* Images.xcassets */; }; - 5C3C72C917F344A300BDA128 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3C72C817F344A300BDA128 /* XCTest.framework */; }; - 5C3C72CA17F344A300BDA128 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3C72AF17F344A300BDA128 /* Foundation.framework */; }; - 5C3C72CB17F344A300BDA128 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5C3C72B317F344A300BDA128 /* UIKit.framework */; }; - 5C3C72D317F344A300BDA128 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5C3C72D117F344A300BDA128 /* InfoPlist.strings */; }; - 5C3C72D517F344A300BDA128 /* StatusBarTestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C3C72D417F344A300BDA128 /* StatusBarTestTests.m */; }; 5C3C72E017F344D800BDA128 /* SHStatusBarViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5C3C72DF17F344D800BDA128 /* SHStatusBarViewController.m */; }; /* End PBXBuildFile section */ -/* Begin PBXContainerItemProxy section */ - 5C3C72CC17F344A300BDA128 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 5C3C72A417F344A300BDA128 /* Project object */; - proxyType = 1; - remoteGlobalIDString = 5C3C72AB17F344A300BDA128; - remoteInfo = StatusBarTest; - }; -/* End PBXContainerItemProxy section */ - /* Begin PBXFileReference section */ 5C3C72AC17F344A300BDA128 /* StatusBarTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StatusBarTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 5C3C72AF17F344A300BDA128 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 5C3C72B117F344A300BDA128 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; 5C3C72B317F344A300BDA128 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; 5C3C72B717F344A300BDA128 /* StatusBarTest-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "StatusBarTest-Info.plist"; sourceTree = ""; }; - 5C3C72B917F344A300BDA128 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; 5C3C72BB17F344A300BDA128 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 5C3C72BD17F344A300BDA128 /* StatusBarTest-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "StatusBarTest-Prefix.pch"; sourceTree = ""; }; 5C3C72BE17F344A300BDA128 /* SHAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SHAppDelegate.h; sourceTree = ""; }; 5C3C72BF17F344A300BDA128 /* SHAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SHAppDelegate.m; sourceTree = ""; }; 5C3C72C117F344A300BDA128 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; - 5C3C72C717F344A300BDA128 /* StatusBarTestTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StatusBarTestTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 5C3C72C817F344A300BDA128 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; - 5C3C72D017F344A300BDA128 /* StatusBarTestTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "StatusBarTestTests-Info.plist"; sourceTree = ""; }; - 5C3C72D217F344A300BDA128 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; - 5C3C72D417F344A300BDA128 /* StatusBarTestTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = StatusBarTestTests.m; sourceTree = ""; }; 5C3C72DE17F344D800BDA128 /* SHStatusBarViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHStatusBarViewController.h; sourceTree = ""; }; 5C3C72DF17F344D800BDA128 /* SHStatusBarViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SHStatusBarViewController.m; sourceTree = ""; }; /* End PBXFileReference section */ @@ -64,16 +43,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 5C3C72C417F344A300BDA128 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 5C3C72C917F344A300BDA128 /* XCTest.framework in Frameworks */, - 5C3C72CB17F344A300BDA128 /* UIKit.framework in Frameworks */, - 5C3C72CA17F344A300BDA128 /* Foundation.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ @@ -81,7 +50,6 @@ isa = PBXGroup; children = ( 5C3C72B517F344A300BDA128 /* StatusBarTest */, - 5C3C72CE17F344A300BDA128 /* StatusBarTestTests */, 5C3C72AE17F344A300BDA128 /* Frameworks */, 5C3C72AD17F344A300BDA128 /* Products */, ); @@ -91,7 +59,6 @@ isa = PBXGroup; children = ( 5C3C72AC17F344A300BDA128 /* StatusBarTest.app */, - 5C3C72C717F344A300BDA128 /* StatusBarTestTests.xctest */, ); name = Products; sourceTree = ""; @@ -112,10 +79,10 @@ children = ( 5C3C72BE17F344A300BDA128 /* SHAppDelegate.h */, 5C3C72BF17F344A300BDA128 /* SHAppDelegate.m */, - 5C3C72C117F344A300BDA128 /* Images.xcassets */, - 5C3C72B617F344A300BDA128 /* Supporting Files */, 5C3C72DE17F344D800BDA128 /* SHStatusBarViewController.h */, 5C3C72DF17F344D800BDA128 /* SHStatusBarViewController.m */, + 5C3C72C117F344A300BDA128 /* Images.xcassets */, + 5C3C72B617F344A300BDA128 /* Supporting Files */, ); path = StatusBarTest; sourceTree = ""; @@ -124,31 +91,12 @@ isa = PBXGroup; children = ( 5C3C72B717F344A300BDA128 /* StatusBarTest-Info.plist */, - 5C3C72B817F344A300BDA128 /* InfoPlist.strings */, 5C3C72BB17F344A300BDA128 /* main.m */, 5C3C72BD17F344A300BDA128 /* StatusBarTest-Prefix.pch */, ); name = "Supporting Files"; sourceTree = ""; }; - 5C3C72CE17F344A300BDA128 /* StatusBarTestTests */ = { - isa = PBXGroup; - children = ( - 5C3C72D417F344A300BDA128 /* StatusBarTestTests.m */, - 5C3C72CF17F344A300BDA128 /* Supporting Files */, - ); - path = StatusBarTestTests; - sourceTree = ""; - }; - 5C3C72CF17F344A300BDA128 /* Supporting Files */ = { - isa = PBXGroup; - children = ( - 5C3C72D017F344A300BDA128 /* StatusBarTestTests-Info.plist */, - 5C3C72D117F344A300BDA128 /* InfoPlist.strings */, - ); - name = "Supporting Files"; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -169,24 +117,6 @@ productReference = 5C3C72AC17F344A300BDA128 /* StatusBarTest.app */; productType = "com.apple.product-type.application"; }; - 5C3C72C617F344A300BDA128 /* StatusBarTestTests */ = { - isa = PBXNativeTarget; - buildConfigurationList = 5C3C72DB17F344A300BDA128 /* Build configuration list for PBXNativeTarget "StatusBarTestTests" */; - buildPhases = ( - 5C3C72C317F344A300BDA128 /* Sources */, - 5C3C72C417F344A300BDA128 /* Frameworks */, - 5C3C72C517F344A300BDA128 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - 5C3C72CD17F344A300BDA128 /* PBXTargetDependency */, - ); - name = StatusBarTestTests; - productName = StatusBarTestTests; - productReference = 5C3C72C717F344A300BDA128 /* StatusBarTestTests.xctest */; - productType = "com.apple.product-type.bundle.unit-test"; - }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -196,11 +126,6 @@ CLASSPREFIX = SH; LastUpgradeCheck = 0500; ORGANIZATIONNAME = "Simon Holroyd"; - TargetAttributes = { - 5C3C72C617F344A300BDA128 = { - TestTargetID = 5C3C72AB17F344A300BDA128 /* StatusBarTest */; - }; - }; }; buildConfigurationList = 5C3C72A717F344A300BDA128 /* Build configuration list for PBXProject "StatusBarTest" */; compatibilityVersion = "Xcode 3.2"; @@ -215,7 +140,6 @@ projectRoot = ""; targets = ( 5C3C72AB17F344A300BDA128 /* StatusBarTest */, - 5C3C72C617F344A300BDA128 /* StatusBarTestTests */, ); }; /* End PBXProject section */ @@ -225,19 +149,10 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 5C3C72BA17F344A300BDA128 /* InfoPlist.strings in Resources */, 5C3C72C217F344A300BDA128 /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; - 5C3C72C517F344A300BDA128 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5C3C72D317F344A300BDA128 /* InfoPlist.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -251,43 +166,8 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 5C3C72C317F344A300BDA128 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 5C3C72D517F344A300BDA128 /* StatusBarTestTests.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXTargetDependency section */ - 5C3C72CD17F344A300BDA128 /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 5C3C72AB17F344A300BDA128 /* StatusBarTest */; - targetProxy = 5C3C72CC17F344A300BDA128 /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - -/* Begin PBXVariantGroup section */ - 5C3C72B817F344A300BDA128 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 5C3C72B917F344A300BDA128 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; - 5C3C72D117F344A300BDA128 /* InfoPlist.strings */ = { - isa = PBXVariantGroup; - children = ( - 5C3C72D217F344A300BDA128 /* en */, - ); - name = InfoPlist.strings; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - /* Begin XCBuildConfiguration section */ 5C3C72D617F344A300BDA128 /* Debug */ = { isa = XCBuildConfiguration; @@ -387,48 +267,6 @@ }; name = Release; }; - 5C3C72DC17F344A300BDA128 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/StatusBarTest.app/StatusBarTest"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "StatusBarTest/StatusBarTest-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "StatusBarTestTests/StatusBarTestTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Debug; - }; - 5C3C72DD17F344A300BDA128 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)"; - BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/StatusBarTest.app/StatusBarTest"; - FRAMEWORK_SEARCH_PATHS = ( - "$(SDKROOT)/Developer/Library/Frameworks", - "$(inherited)", - "$(DEVELOPER_FRAMEWORKS_DIR)", - ); - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "StatusBarTest/StatusBarTest-Prefix.pch"; - INFOPLIST_FILE = "StatusBarTestTests/StatusBarTestTests-Info.plist"; - PRODUCT_NAME = "$(TARGET_NAME)"; - TEST_HOST = "$(BUNDLE_LOADER)"; - WRAPPER_EXTENSION = xctest; - }; - name = Release; - }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -448,14 +286,7 @@ 5C3C72DA17F344A300BDA128 /* Release */, ); defaultConfigurationIsVisible = 0; - }; - 5C3C72DB17F344A300BDA128 /* Build configuration list for PBXNativeTarget "StatusBarTestTests" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 5C3C72DC17F344A300BDA128 /* Debug */, - 5C3C72DD17F344A300BDA128 /* Release */, - ); - defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/StatusBarTest/en.lproj/InfoPlist.strings b/StatusBarTest/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28f..0000000 --- a/StatusBarTest/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ - diff --git a/StatusBarTestTests/StatusBarTestTests-Info.plist b/StatusBarTestTests/StatusBarTestTests-Info.plist deleted file mode 100644 index 91fc217..0000000 --- a/StatusBarTestTests/StatusBarTestTests-Info.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - ${EXECUTABLE_NAME} - CFBundleIdentifier - com.simonholroyd.${PRODUCT_NAME:rfc1034identifier} - CFBundleInfoDictionaryVersion - 6.0 - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/StatusBarTestTests/StatusBarTestTests.m b/StatusBarTestTests/StatusBarTestTests.m deleted file mode 100644 index e0d3cc6..0000000 --- a/StatusBarTestTests/StatusBarTestTests.m +++ /dev/null @@ -1,34 +0,0 @@ -// -// StatusBarTestTests.m -// StatusBarTestTests -// -// Created by Simon Holroyd on 9/25/13. -// Copyright (c) 2013 Simon Holroyd. All rights reserved. -// - -#import - -@interface StatusBarTestTests : XCTestCase - -@end - -@implementation StatusBarTestTests - -- (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 -{ - XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); -} - -@end diff --git a/StatusBarTestTests/en.lproj/InfoPlist.strings b/StatusBarTestTests/en.lproj/InfoPlist.strings deleted file mode 100644 index 477b28f..0000000 --- a/StatusBarTestTests/en.lproj/InfoPlist.strings +++ /dev/null @@ -1,2 +0,0 @@ -/* Localized versions of Info.plist keys */ -