Skip to content

Commit dc7e6b0

Browse files
committedNov 27, 2015
修复bug
1 parent 467a9d6 commit dc7e6b0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎shoppingCart/Classes/ShopCart/Controller/JFShoppingCartViewController.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ class JFShoppingCartViewController: UIViewController {
105105
make.center.equalTo(bottomView.snp_center)
106106
}
107107

108+
buyButton.snp_makeConstraints { (make) -> Void in
109+
make.right.equalTo(-12)
110+
make.top.equalTo(9)
111+
make.width.equalTo(88)
112+
make.height.equalTo(30)
113+
}
114+
108115
}
109116

110117
// MARK: - 懒加载
@@ -156,7 +163,6 @@ class JFShoppingCartViewController: UIViewController {
156163
let buyButton = UIButton(type: UIButtonType.Custom)
157164
buyButton.setTitle("付款", forState: UIControlState.Normal)
158165
buyButton.setBackgroundImage(UIImage(named: "button_cart_add"), forState: UIControlState.Normal)
159-
buyButton.frame = CGRect(x: SCREEN_WIDTH - 100, y: 9, width: 88, height: 30)
160166
buyButton.layer.cornerRadius = 15
161167
buyButton.layer.masksToBounds = true
162168
return buyButton

0 commit comments

Comments
 (0)