Skip to content

Commit e979e8f

Browse files
committed
add buttonContentViewTop
1 parent 6d4b167 commit e979e8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TYAlertControllerDemo/TYAlertController/TYAlertView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ - (void)configureProperty
130130
_buttonHeight = KButtonHeight;
131131
_buttonSpace = kButtonSpace;
132132
_buttonContentViewEdge = kContentViewEdge;
133-
_buttonContentViewTop = 0;
133+
_buttonContentViewTop = kContentViewSpace;
134134
_buttonCornerRadius = 4.0;
135135
_buttonFont = [UIFont fontWithName:@"HelveticaNeue" size:18];;
136136
_buttonDefaultBgColor = [UIColor colorWithRed:52/255.0 green:152/255.0 blue:219/255.0 alpha:1];
@@ -322,7 +322,7 @@ - (void)layoutButtons
322322
{
323323
UIButton *button = _buttons.lastObject;
324324
if (_buttons.count == 1) {
325-
_buttonTopConstraint.constant = -_contentViewSpace;
325+
_buttonTopConstraint.constant = -_buttonContentViewTop;
326326
[_buttonContentView addConstraintToView:button edgeInset:UIEdgeInsetsZero];
327327
[button addConstraintWidth:0 height:_buttonHeight];
328328
}else if (_buttons.count == 2) {

0 commit comments

Comments
 (0)