Skip to content

Commit 4cc77c1

Browse files
committed
UI 调整
1 parent cb9ae91 commit 4cc77c1

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Coding_iOS/Coding_iOS-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>3.5.201512081900</string>
39+
<string>3.5.201512082000</string>
4040
<key>LSApplicationQueriesSchemes</key>
4141
<array>
4242
<string>wechat</string>

Coding_iOS/Util/OC_Category/UIButton+Common.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,12 @@ + (UIButton *)tweetBtnWithFrame:(CGRect)frame alignmentLeft:(BOOL)alignmentLeft{
128128
[button setTitleColor:[UIColor colorWithHexString:@"0x999999"] forState:UIControlStateNormal];
129129
if (alignmentLeft) {
130130
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
131+
button.imageEdgeInsets = UIEdgeInsetsMake(0, 5, 0, -5);
131132
button.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, -10);
132133
}else{
133134
button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentRight;
134135
button.imageEdgeInsets = UIEdgeInsetsMake(0, -10, 0, 10);
136+
button.titleEdgeInsets = UIEdgeInsetsMake(0, -5, 0, 5);
135137
}
136138
return button;
137139
}

Coding_iOS/Views/Cell/ShopOderCell.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ - (void)setUpContentView
7878

7979
[orderLabel mas_makeConstraints:^(MASConstraintMaker *make) {
8080
make.left.equalTo(superView.mas_left).offset(12);
81-
make.top.equalTo(superView.mas_top).offset(13);
81+
make.top.equalTo(superView.mas_top).offset(12);
8282
// make.width.offset(132/2);
8383
make.height.offset(20);
8484
}];
@@ -178,7 +178,7 @@ - (void)setUpContentView
178178
[superView addSubview:_nameLabel];
179179

180180
[nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
181-
make.top.equalTo(_goodsInfoView.mas_bottom).offset(9);
181+
make.top.equalTo(_goodsInfoView.mas_bottom).offset(12);
182182
make.left.equalTo(_goodsInfoView.mas_left);
183183
}];
184184

0 commit comments

Comments
 (0)