Skip to content

Commit b72b7a9

Browse files
committed
Merge pull request Sumi-Interactive#23 from 5D/patch-1
Fix viewBackgroundColor doesn't get involved.
2 parents f2461e3 + 5ffa5cc commit b72b7a9

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)