Skip to content

Commit 718f964

Browse files
committed
界面小改
1 parent c682ae6 commit 718f964

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5675,6 +5675,7 @@
56755675
ORGANIZATIONNAME = Coding;
56765676
TargetAttributes = {
56775677
8E47700F198770E700997D05 = {
5678+
DevelopmentTeam = QN5Z87S3LH;
56785679
SystemCapabilities = {
56795680
com.apple.BackgroundModes = {
56805681
enabled = 0;

Coding_iOS/Controllers/TopicDetailViewController.m

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,17 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView
259259

260260
#pragma mark Table header footer
261261
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
262-
return section == 0? 1.0/[UIScreen mainScreen].scale: _curTopic.watchers.count > 0? 152: 98;
262+
return section == 0? 1.0/[UIScreen mainScreen].scale: _curTopic.watchers.count > 0? 142: 88;
263263
}
264264

265265
- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
266-
return 1.0/[UIScreen mainScreen].scale;
266+
return section == 0? 10: 1.0/[UIScreen mainScreen].scale;
267+
}
268+
269+
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
270+
UIView *footerV = [UIView new];
271+
footerV.backgroundColor = kColorTableSectionBg;
272+
return footerV;
267273
}
268274

269275
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
@@ -498,7 +504,6 @@ - (instancetype)init
498504
self = [super init];
499505
if (self) {
500506
__weak typeof(self) weakSelf = self;
501-
self.backgroundColor = kColorTableSectionBg;
502507
if (!_contentView) {
503508
_contentView = [UIView new];
504509
_contentView.backgroundColor = kColorTableBG;
@@ -572,8 +577,7 @@ - (instancetype)init
572577
[self.contentView addSubview:_deleteBtn];
573578
}
574579
[_contentView mas_makeConstraints:^(MASConstraintMaker *make) {
575-
make.left.right.bottom.equalTo(self);
576-
make.top.equalTo(self).offset(10);
580+
make.edges.equalTo(self);
577581
}];
578582
[_watchersL mas_makeConstraints:^(MASConstraintMaker *make) {
579583
make.left.equalTo(_contentView).offset(kPaddingLeftWidth);

Coding_iOS/Controllers/UserOrProjectTweetsViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ - (void)viewDidLoad
5353
if (_curTweets.tweetType == TweetTypeUserSingle) {
5454
self.title = _curTweets.curUser.name;
5555
}else if (_curTweets.tweetType == TweetTypeProject){
56-
self.title = _curTweets.curPro.name;
56+
self.title = @"项目内冒泡";
5757
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"addBtn_Nav"] style:UIBarButtonItemStylePlain target:self action:@selector(addBtnClicked)];
5858
}else{
5959
self.title = @"冒泡列表";

0 commit comments

Comments
 (0)