diff --git a/MTStatusBarOverlay.m b/MTStatusBarOverlay.m index 6c5d209..7924e9e 100755 --- a/MTStatusBarOverlay.m +++ b/MTStatusBarOverlay.m @@ -279,8 +279,8 @@ @implementation MTStatusBarOverlay #pragma mark Lifecycle //////////////////////////////////////////////////////////////////////// -- (id)initWithFrame:(CGRect)frame { - if ((self = [super initWithFrame:frame])) { +- (id)init { + if ((self = [super init])) { CGRect statusBarFrame = [UIApplication sharedApplication].statusBarFrame; // only use height of 20px even is status bar is doubled diff --git a/MTStatusBarOverlay.xcodeproj/project.pbxproj b/MTStatusBarOverlay.xcodeproj/project.pbxproj index a8b5010..5e06e2f 100644 --- a/MTStatusBarOverlay.xcodeproj/project.pbxproj +++ b/MTStatusBarOverlay.xcodeproj/project.pbxproj @@ -117,7 +117,7 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0420; + LastUpgradeCheck = 0700; }; buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "MTStatusBarOverlay" */; compatibilityVersion = "Xcode 3.2"; @@ -155,7 +155,6 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; COPY_PHASE_STRIP = NO; DSTROOT = /tmp/MTStatusBarOverlay.dst; @@ -174,7 +173,6 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; CLANG_ENABLE_OBJC_ARC = YES; DSTROOT = /tmp/MTStatusBarOverlay.dst; GCC_MODEL_TUNING = G5; @@ -189,7 +187,7 @@ 1DEB922308733DC00010E9CD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; + ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = c99; GCC_OPTIMIZATION_LEVEL = 0; GCC_THUMB_SUPPORT = NO; @@ -201,6 +199,7 @@ GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 4.0; + ONLY_ACTIVE_ARCH = YES; OTHER_LDFLAGS = "-ObjC"; SDKROOT = iphoneos; SKIP_INSTALL = YES; @@ -210,7 +209,6 @@ 1DEB922408733DC00010E9CD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_32_BIT)"; GCC_C_LANGUAGE_STANDARD = c99; GCC_THUMB_SUPPORT = NO; "GCC_THUMB_SUPPORT[arch=armv6]" = NO;