Skip to content

Commit 5ffa5cc

Browse files
author
Wú Dí
committed
Fix viewBackgroundColor doesn't get involved.
1 parent f2461e3 commit 5ffa5cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SIAlertView/SIAlertView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ - (void)teardown
780780
- (void)setupContainerView
781781
{
782782
self.containerView = [[UIView alloc] initWithFrame:self.bounds];
783-
self.containerView.backgroundColor = [UIColor whiteColor];
783+
self.containerView.backgroundColor = _viewBackgroundColor ? _viewBackgroundColor : [UIColor whiteColor];
784784
self.containerView.layer.cornerRadius = self.cornerRadius;
785785
self.containerView.layer.shadowOffset = CGSizeZero;
786786
self.containerView.layer.shadowRadius = self.shadowRadius;

0 commit comments

Comments
 (0)