Skip to content

Commit b72bfd4

Browse files
author
panshiyu
committed
merge
2 parents a586629 + af1a86d commit b72bfd4

7 files changed

Lines changed: 9 additions & 10 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

Coding_iOS/.DS_Store

-10 KB
Binary file not shown.

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ - (void)viewDidAppear:(BOOL)animated{
152152

153153
UIButton *leftItemView = (UIButton *)self.parentViewController.navigationItem.leftBarButtonItem.customView;
154154
if ([[FunctionTipsManager shareManager] needToTip:kFunctionTipStr_Search]) {
155-
[leftItemView addBadgePoint:3 withPointPosition:CGPointMake(35, 10)];
155+
[leftItemView addBadgePoint:3 withPointPosition:CGPointMake(25, 0)];
156156
}
157157

158158
[self refreshFirst];

Coding_iOS/Controllers/Search/CSSearchDisplayVC.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ - (void)initSearchHistoryView {
241241
make.top.mas_equalTo(_topicHotkeyView.mas_bottom);
242242
make.left.mas_equalTo(@0);
243243
make.width.mas_equalTo(kScreen_Width);
244-
make.height.mas_equalTo(@280);
244+
make.height.mas_equalTo(@350);
245245
}];
246246
}
247247

Coding_iOS/Controllers/Search/CSSearchModel.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ + (void)addSearchHistory:(NSString *)searchString {
3131

3232
NSMutableArray *history = [NSMutableArray arrayWithArray:[CSSearchModel getSearchHistory]];
3333
if(![history containsObject:searchString]) {
34-
if(history.count >= 3)
34+
if(history.count >= 8)
3535
[history removeLastObject];
3636
[history insertObject:searchString atIndex:0];
3737
[[TMCache TemporaryCache] setObject:history forKey:kSearchHistory];

Coding_iOS/Controllers/Topic/CSTopicDetailVC.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ @implementation CSTopicDetailVC
2828
- (void)viewDidLoad {
2929
[super viewDidLoad];
3030

31-
3231
[self setupData];
3332
[self setupUI];
3433

@@ -100,7 +99,7 @@ - (void) setupUI {
10099

101100
_myTableView = ({
102101
UITableView *tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
103-
tableView.backgroundColor = [UIColor clearColor];
102+
tableView.backgroundColor = [UIColor whiteColor];
104103
tableView.dataSource = self;
105104
tableView.delegate = self;
106105
tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

Coding_iOS/Util/OC_Category/UIBarButtonItem+Common.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ + (UIBarButtonItem *)itemWithBtnTitle:(NSString *)title target:(id)obj action:(S
1717

1818
+ (UIBarButtonItem *)itemWithIcon:(NSString*)iconName showBadge:(BOOL)showbadge target:(id)obj action:(SEL)selector {
1919
UIButton* button = [[UIButton alloc] init];
20-
button.imageEdgeInsets = UIEdgeInsetsMake(10, 0, 10, 0);
20+
button.imageEdgeInsets = UIEdgeInsetsMake(-2, 0, 0, 0);
2121
[button setImage:[UIImage imageNamed:iconName] forState:UIControlStateNormal];
2222
[button setImage:[UIImage imageNamed:iconName] forState:UIControlStateHighlighted];
2323
CGSize imgSize = button.imageView.image.size;
24-
button.size = CGSizeMake(imgSize.width + 20, imgSize.height + 20);
24+
button.size = CGSizeMake(imgSize.width, imgSize.height);
2525

26-
if (showbadge) {
27-
[button addRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(2, 2)];
26+
// if (showbadge) {
27+
// [button addRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(2, 2)];
2828
// CGFloat pointX = button.frame.size.width - 15;
2929
// [button addBadgeTip:@"1" withCenterPosition:CGPointMake(pointX, 5)];
30-
}
30+
// }
3131

3232
[button addTarget:obj action:selector forControlEvents:UIControlEventTouchUpInside];
3333
return [[UIBarButtonItem alloc] initWithCustomView:button];;

0 commit comments

Comments
 (0)