Skip to content

Commit ca632c4

Browse files
author
Nicolas CHENG
committed
fix issue #80
1 parent b12c9f4 commit ca632c4

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

WYPopoverController/WYPopoverController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,7 @@ + (WYPopoverTheme *)defaultTheme
16311631

16321632
+ (void)initialize
16331633
{
1634-
[WYPopoverController setDefaultTheme:[WYPopoverController defaultTheme]];
1634+
[WYPopoverController setDefaultTheme:[WYPopoverTheme theme]];
16351635
}
16361636

16371637
- (id)init

demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@
202202
CLASSPREFIX = WY;
203203
LastUpgradeCheck = 0460;
204204
ORGANIZATIONNAME = "Nicolas CHENG";
205+
TargetAttributes = {
206+
976A341A17BB9AEB0071BF21 = {
207+
DevelopmentTeam = YST3J3LK7J;
208+
};
209+
};
205210
};
206211
buildConfigurationList = 976A341617BB9AEB0071BF21 /* Build configuration list for PBXProject "WYPopoverDemo" */;
207212
compatibilityVersion = "Xcode 3.2";
@@ -330,11 +335,14 @@
330335
976A344217BB9AEB0071BF21 /* Debug */ = {
331336
isa = XCBuildConfiguration;
332337
buildSettings = {
338+
CODE_SIGN_IDENTITY = "iPhone Developer";
339+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
333340
GCC_PRECOMPILE_PREFIX_HEADER = YES;
334341
GCC_PREFIX_HEADER = "WYPopoverDemo/WYPopoverDemo-Prefix.pch";
335342
INFOPLIST_FILE = "WYPopoverDemo/WYPopoverDemo-Info.plist";
336343
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
337344
PRODUCT_NAME = "$(TARGET_NAME)";
345+
PROVISIONING_PROFILE = "";
338346
TARGETED_DEVICE_FAMILY = "1,2";
339347
WRAPPER_EXTENSION = app;
340348
};
@@ -343,11 +351,14 @@
343351
976A344317BB9AEB0071BF21 /* Release */ = {
344352
isa = XCBuildConfiguration;
345353
buildSettings = {
354+
CODE_SIGN_IDENTITY = "iPhone Developer";
355+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
346356
GCC_PRECOMPILE_PREFIX_HEADER = YES;
347357
GCC_PREFIX_HEADER = "WYPopoverDemo/WYPopoverDemo-Prefix.pch";
348358
INFOPLIST_FILE = "WYPopoverDemo/WYPopoverDemo-Info.plist";
349359
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
350360
PRODUCT_NAME = "$(TARGET_NAME)";
361+
PROVISIONING_PROFILE = "";
351362
TARGETED_DEVICE_FAMILY = "1,2";
352363
WRAPPER_EXTENSION = app;
353364
};

demos/Demo/WYPopoverDemo/WYAppDelegate.m

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,12 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
6262
}];
6363
*/
6464

65-
[WYPopoverController setDefaultTheme:[WYPopoverTheme themeForIOS6]];
65+
//WYPopoverTheme *theme = [WYPopoverTheme themeForIOS6];
66+
//[WYPopoverController setDefaultTheme:theme];
6667

6768
WYPopoverBackgroundView *popoverAppearance = [WYPopoverBackgroundView appearance];
68-
[popoverAppearance setArrowHeight:23];
69-
[popoverAppearance setArrowBase:35];
69+
[popoverAppearance setArrowHeight:20];
70+
[popoverAppearance setArrowBase:20];
7071

7172
//Appearance 2 (orange popover)
7273
//

0 commit comments

Comments
 (0)