diff --git a/Classes/Popover/WEPopoverContainerView.m b/Classes/Popover/WEPopoverContainerView.m index 2073cca..3e5d56f 100755 --- a/Classes/Popover/WEPopoverContainerView.m +++ b/Classes/Popover/WEPopoverContainerView.m @@ -71,7 +71,7 @@ - (id)initWithSize:(CGSize)theSize UIImage *theImage = [UIImage imageNamed:properties.bgImageName]; bgImage = [theImage stretchableImageWithLeftCapWidth:properties.leftBgCapSize topCapHeight:properties.topBgCapSize]; #endif - //self.clipsToBounds = NO; // DFH - if not set here will not support layer shadows + //self.clipsToBounds = NO; // DFH - cannot get layer shadows if set to NO self.userInteractionEnabled = YES; } return self; @@ -113,7 +113,7 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { - (void)setContentView:(UIView *)v { if (v != contentView) { - [contentView removeFromSuperview]; // DFH + [contentView removeFromSuperview]; // DFH - old bug contentView = v; contentView.frame = self.contentRect; [self addSubview:contentView]; diff --git a/README_DFH.txt b/README_DFH.txt index c920742..97b1d28 100644 --- a/README_DFH.txt +++ b/README_DFH.txt @@ -2,7 +2,7 @@ This fork has several features, fixes, and options not in the original repositor - it's been ARCified -- an image drawing routine can now draw the popup box with either a flat or gradient background. This makes it posssible to perfectly add an arrow to the rounded rect and put a border around it without getting pixel fractions. To get this add the define "-DDRAW_IMAGES" to your project define list or add to the pch file. +- an image drawing routine can now draw the popup box with either a flat or gradient background. This makes it posssible to perfectly add an arrow to the rounded rect and put a border around it without getting pixel fractions. To get this add the define "-DDRAW_IMAGES" to your project define list or add to the pch file. The project has two schemes now (and two targets), one for the png images and the other for generated images. - see the DFH comment in WEPopoverTableViewController.m to force an orientation for testing. diff --git a/WEPopover.xcodeproj/project.pbxproj b/WEPopover.xcodeproj/project.pbxproj index ad9d5b9..5c04d11 100755 --- a/WEPopover.xcodeproj/project.pbxproj +++ b/WEPopover.xcodeproj/project.pbxproj @@ -96,7 +96,7 @@ 8D1107310486CEB800E47090 /* WEPopover-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "WEPopover-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = ""; }; DE784E48147BE9D100852D83 /* WEPopoverDrawnImages.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = WEPopoverDrawnImages.app; sourceTree = BUILT_PRODUCTS_DIR; }; DE784E4B147BE9D200852D83 /* WEPopover copy-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = "WEPopover copy-Info.plist"; path = "/Volumes/Data/git/WEPopover/WEPopover copy-Info.plist"; sourceTree = ""; }; - DE784E55147C524400852D83 /* README_DFH.txt */ = {isa = PBXFileReference; path = README_DFH.txt; sourceTree = ""; }; + DE784E55147C524400852D83 /* README_DFH.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = README_DFH.txt; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */