@@ -264,6 +264,7 @@ @interface WYPopoverInnerView : UIView
264264@property (nonatomic , assign ) CGFloat gradientTopPosition;
265265
266266@property (nonatomic , strong ) UIColor *innerShadowColor;
267+ @property (nonatomic , strong ) UIColor *innerStrokeColor;
267268@property (nonatomic , assign ) CGSize innerShadowOffset;
268269@property (nonatomic , assign ) CGFloat innerShadowBlurRadius;
269270@property (nonatomic , assign ) CGFloat innerCornerRadius;
@@ -288,6 +289,7 @@ @implementation WYPopoverInnerView
288289@synthesize gradientTopPosition;
289290
290291@synthesize innerShadowColor;
292+ @synthesize innerStrokeColor;
291293@synthesize innerShadowOffset;
292294@synthesize innerShadowBlurRadius;
293295@synthesize innerCornerRadius;
@@ -354,7 +356,7 @@ - (void)drawRect:(CGRect)rect
354356
355357 UIBezierPath* inRoundedRectPath = [UIBezierPath bezierPathWithRoundedRect: CGRectInset (innerRect, 0.5 , 0.5 ) cornerRadius: cornerRadius];
356358
357- [self .strokeColor setStroke ];
359+ [self .innerStrokeColor setStroke ];
358360 inRoundedRectPath.lineWidth = 1 ;
359361 [inRoundedRectPath stroke ];
360362 }
@@ -369,6 +371,7 @@ - (void)dealloc
369371{
370372 strokeColor = nil ;
371373 innerShadowColor = nil ;
374+ innerStrokeColor = nil ;
372375 gradientTopColor = nil ;
373376 gradientBottomColor = nil ;
374377}
@@ -517,6 +520,7 @@ @implementation WYPopoverBackgroundView
517520@synthesize outerCornerRadius;
518521@synthesize minOuterCornerRadius;
519522@synthesize innerShadowColor;
523+ @synthesize innerStrokeColor;
520524@synthesize innerShadowBlurRadius;
521525@synthesize innerShadowOffset;
522526@synthesize innerCornerRadius;
@@ -540,6 +544,7 @@ + (void)load
540544 {
541545 appearance.tintColor = nil ;
542546 appearance.strokeColor = nil ;
547+ appearance.innerStrokeColor = nil ;
543548 appearance.fillTopColor = nil ;
544549 appearance.fillBottomColor = nil ;
545550 appearance.glossShadowColor = nil ;
@@ -563,6 +568,7 @@ + (void)load
563568 {
564569 appearance.tintColor = nil ;
565570 appearance.strokeColor = [UIColor clearColor ];
571+ appearance.innerStrokeColor = [UIColor clearColor ];
566572 appearance.fillTopColor = nil ;
567573 appearance.fillBottomColor = nil ;
568574 appearance.glossShadowColor = nil ;
@@ -699,6 +705,7 @@ - (void)setViewController:(UIViewController *)viewController
699705 innerView.gradientBottomColor = self.fillBottomColor ;
700706 innerView.strokeColor = self.strokeColor ;
701707 innerView.innerShadowColor = innerShadowColor;
708+ innerView.innerStrokeColor = innerStrokeColor;
702709 innerView.innerShadowOffset = innerShadowOffset;
703710 innerView.innerCornerRadius = self.innerCornerRadius ;
704711 innerView.innerShadowBlurRadius = innerShadowBlurRadius;
@@ -1183,6 +1190,7 @@ - (void)dealloc
11831190 glossShadowColor = nil ;
11841191 outerShadowColor = nil ;
11851192 innerShadowColor = nil ;
1193+ innerStrokeColor = nil ;
11861194}
11871195
11881196@end
@@ -1358,6 +1366,7 @@ - (void)presentPopoverFromRect:(CGRect)aRect inView:(UIView *)aView permittedArr
13581366 containerView.outerCornerRadius = appearance.outerCornerRadius ;
13591367 containerView.minOuterCornerRadius = appearance.minOuterCornerRadius ;
13601368 containerView.innerShadowColor = appearance.innerShadowColor ;
1369+ containerView.innerStrokeColor = appearance.innerStrokeColor ;
13611370 containerView.innerShadowBlurRadius = appearance.innerShadowBlurRadius ;
13621371 containerView.innerShadowOffset = appearance.innerShadowOffset ;
13631372 containerView.innerCornerRadius = appearance.innerCornerRadius ;
0 commit comments