From ca632c4ebbc9893cc5d516c3701c845cff3f6bb8 Mon Sep 17 00:00:00 2001 From: Nicolas CHENG Date: Fri, 21 Feb 2014 17:37:51 +0100 Subject: [PATCH] fix issue #80 --- WYPopoverController/WYPopoverController.m | 2 +- demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj | 11 +++++++++++ demos/Demo/WYPopoverDemo/WYAppDelegate.m | 7 ++++--- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/WYPopoverController/WYPopoverController.m b/WYPopoverController/WYPopoverController.m index 1f24fb0b..8b04be68 100644 --- a/WYPopoverController/WYPopoverController.m +++ b/WYPopoverController/WYPopoverController.m @@ -1631,7 +1631,7 @@ + (WYPopoverTheme *)defaultTheme + (void)initialize { - [WYPopoverController setDefaultTheme:[WYPopoverController defaultTheme]]; + [WYPopoverController setDefaultTheme:[WYPopoverTheme theme]]; } - (id)init diff --git a/demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj b/demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj index 848b24a0..ed6f45f5 100644 --- a/demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj +++ b/demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj @@ -202,6 +202,11 @@ CLASSPREFIX = WY; LastUpgradeCheck = 0460; ORGANIZATIONNAME = "Nicolas CHENG"; + TargetAttributes = { + 976A341A17BB9AEB0071BF21 = { + DevelopmentTeam = YST3J3LK7J; + }; + }; }; buildConfigurationList = 976A341617BB9AEB0071BF21 /* Build configuration list for PBXProject "WYPopoverDemo" */; compatibilityVersion = "Xcode 3.2"; @@ -330,11 +335,14 @@ 976A344217BB9AEB0071BF21 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "WYPopoverDemo/WYPopoverDemo-Prefix.pch"; INFOPLIST_FILE = "WYPopoverDemo/WYPopoverDemo-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; }; @@ -343,11 +351,14 @@ 976A344317BB9AEB0071BF21 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + CODE_SIGN_IDENTITY = "iPhone Developer"; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "WYPopoverDemo/WYPopoverDemo-Prefix.pch"; INFOPLIST_FILE = "WYPopoverDemo/WYPopoverDemo-Info.plist"; IPHONEOS_DEPLOYMENT_TARGET = 7.0; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE = ""; TARGETED_DEVICE_FAMILY = "1,2"; WRAPPER_EXTENSION = app; }; diff --git a/demos/Demo/WYPopoverDemo/WYAppDelegate.m b/demos/Demo/WYPopoverDemo/WYAppDelegate.m index 4074816c..5765e202 100644 --- a/demos/Demo/WYPopoverDemo/WYAppDelegate.m +++ b/demos/Demo/WYPopoverDemo/WYAppDelegate.m @@ -62,11 +62,12 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( }]; */ - [WYPopoverController setDefaultTheme:[WYPopoverTheme themeForIOS6]]; + //WYPopoverTheme *theme = [WYPopoverTheme themeForIOS6]; + //[WYPopoverController setDefaultTheme:theme]; WYPopoverBackgroundView *popoverAppearance = [WYPopoverBackgroundView appearance]; - [popoverAppearance setArrowHeight:23]; - [popoverAppearance setArrowBase:35]; + [popoverAppearance setArrowHeight:20]; + [popoverAppearance setArrowBase:20]; //Appearance 2 (orange popover) //