File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
TYAlertControllerDemo/TYAlertController Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ - (void)configureProperty
130
130
_buttonHeight = KButtonHeight;
131
131
_buttonSpace = kButtonSpace ;
132
132
_buttonContentViewEdge = kContentViewEdge ;
133
- _buttonContentViewTop = 0 ;
133
+ _buttonContentViewTop = kContentViewSpace ;
134
134
_buttonCornerRadius = 4.0 ;
135
135
_buttonFont = [UIFont fontWithName: @" HelveticaNeue" size: 18 ];;
136
136
_buttonDefaultBgColor = [UIColor colorWithRed: 52 /255.0 green: 152 /255.0 blue: 219 /255.0 alpha: 1 ];
@@ -322,7 +322,7 @@ - (void)layoutButtons
322
322
{
323
323
UIButton *button = _buttons.lastObject ;
324
324
if (_buttons.count == 1 ) {
325
- _buttonTopConstraint.constant = -_contentViewSpace ;
325
+ _buttonTopConstraint.constant = -_buttonContentViewTop ;
326
326
[_buttonContentView addConstraintToView: button edgeInset: UIEdgeInsetsZero];
327
327
[button addConstraintWidth: 0 height: _buttonHeight];
328
328
}else if (_buttons.count == 2 ) {
You can’t perform that action at this time.
0 commit comments