Skip to content

Commit

Permalink
fix issue #80
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas CHENG committed Feb 21, 2014
1 parent b12c9f4 commit ca632c4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion WYPopoverController/WYPopoverController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1631,7 +1631,7 @@ + (WYPopoverTheme *)defaultTheme

+ (void)initialize
{
[WYPopoverController setDefaultTheme:[WYPopoverController defaultTheme]];
[WYPopoverController setDefaultTheme:[WYPopoverTheme theme]];
}

- (id)init
Expand Down
11 changes: 11 additions & 0 deletions demos/Demo/WYPopoverDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
7 changes: 4 additions & 3 deletions demos/Demo/WYPopoverDemo/WYAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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)
//
Expand Down

0 comments on commit ca632c4

Please sign in to comment.