Skip to content

Commit 1b3d700

Browse files
LambdaLambda
authored andcommitted
bugfix
1 parent 0a733c1 commit 1b3d700

File tree

7 files changed

+51
-9
lines changed

7 files changed

+51
-9
lines changed

Coding_iOS.xcodeproj/project.pbxproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@
491491
8B3516531B6CE9460049BC45 /* search_tweet_like@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8B35164E1B6CE9460049BC45 /* search_tweet_like@2x.png */; };
492492
8B3516551B6CF69E0049BC45 /* icon_search_clock@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8B3516541B6CF69E0049BC45 /* icon_search_clock@2x.png */; };
493493
8B888E421B72618200806CEE /* CSHotTopicPagesVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 8B888E411B72618200806CEE /* CSHotTopicPagesVC.m */; };
494+
8BDF9AA61B7456060093BF2C /* HotTopicBannerView.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BDF9AA51B7456060093BF2C /* HotTopicBannerView.m */; };
494495
8E03D4A219F695FE0092F8C8 /* libMobClickLibrary.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E03D49F19F695FE0092F8C8 /* libMobClickLibrary.a */; };
495496
8E03D4A419F696970092F8C8 /* libz.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E03D4A319F696970092F8C8 /* libz.dylib */; };
496497
8E1C3DEA19E7D58A00EF3032 /* AbstractActionSheetPicker.m in Sources */ = {isa = PBXBuildFile; fileRef = 8E1C3DDA19E7D58A00EF3032 /* AbstractActionSheetPicker.m */; };
@@ -1556,6 +1557,8 @@
15561557
8B3516541B6CF69E0049BC45 /* icon_search_clock@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "icon_search_clock@2x.png"; sourceTree = "<group>"; };
15571558
8B888E401B72618200806CEE /* CSHotTopicPagesVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSHotTopicPagesVC.h; sourceTree = "<group>"; };
15581559
8B888E411B72618200806CEE /* CSHotTopicPagesVC.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CSHotTopicPagesVC.m; sourceTree = "<group>"; };
1560+
8BDF9AA41B7456060093BF2C /* HotTopicBannerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HotTopicBannerView.h; sourceTree = "<group>"; };
1561+
8BDF9AA51B7456060093BF2C /* HotTopicBannerView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = HotTopicBannerView.m; sourceTree = "<group>"; };
15591562
8E03D49F19F695FE0092F8C8 /* libMobClickLibrary.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libMobClickLibrary.a; sourceTree = "<group>"; };
15601563
8E03D4A019F695FE0092F8C8 /* MobClick.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobClick.h; sourceTree = "<group>"; };
15611564
8E03D4A119F695FE0092F8C8 /* MobClickSocialAnalytics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MobClickSocialAnalytics.h; sourceTree = "<group>"; };
@@ -3882,6 +3885,8 @@
38823885
4EDC33CD1AFB4DCC00698315 /* EaseInputTipsView.m */,
38833886
4EE1A2341B5DF568004284F1 /* ProjectTagLabel.h */,
38843887
4EE1A2351B5DF568004284F1 /* ProjectTagLabel.m */,
3888+
8BDF9AA41B7456060093BF2C /* HotTopicBannerView.h */,
3889+
8BDF9AA51B7456060093BF2C /* HotTopicBannerView.m */,
38853890
4E095A5A1B6907AA008DC439 /* CodingBannersView.h */,
38863891
4E095A5B1B6907AA008DC439 /* CodingBannersView.m */,
38873892
);
@@ -4894,6 +4899,7 @@
48944899
4E4D6A7C1B1C6CDE00FD2E49 /* CommitListCell.m in Sources */,
48954900
8EA6D20B19E240C40076D59C /* RDVTabBarController.m in Sources */,
48964901
4E787DE21B0329B300F06E83 /* ProjectLineNote.m in Sources */,
4902+
8BDF9AA61B7456060093BF2C /* HotTopicBannerView.m in Sources */,
48974903
8EA6D12E19E240C40076D59C /* EditTaskViewController.m in Sources */,
48984904
8EA6D1BC19E240C40076D59C /* ProjectTopics.m in Sources */,
48994905
4EE1A2311B5D02CA004284F1 /* ProjectTasksView.m in Sources */,

Coding_iOS/Controllers/RootControllers/Tweet_RootViewController.m

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

155155
UIButton *leftItemView = (UIButton *)self.parentViewController.navigationItem.leftBarButtonItem.customView;
156156
if ([[FunctionTipsManager shareManager] needToTip:kFunctionTipStr_Search]) {
157-
[leftItemView addBadgePoint:3 withPointPosition:CGPointMake(25, 0)];
157+
[leftItemView addBadgePoint:4 withPointPosition:CGPointMake(25, 0)];
158158
}
159159

160160
[self refreshFirst];

Coding_iOS/Controllers/Search/CSSearchDisplayVC.m

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define kCellIdentifier_Search @"com.coding.search.tweet.result"
3030

31-
@interface CSSearchDisplayVC () <UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource>
31+
@interface CSSearchDisplayVC () <UISearchBarDelegate, UITableViewDelegate, UITableViewDataSource,UIScrollViewDelegate>
3232

3333
@property (nonatomic, strong) UIView *contentView;
3434
@property (nonatomic, strong) XHRealTimeBlur *backgroundView;
@@ -58,6 +58,10 @@ - (void)didClickedHistory:(UIGestureRecognizer *)sender;
5858

5959
@implementation CSSearchDisplayVC
6060

61+
- (void)dealloc {
62+
_searchHistoryView.delegate = nil;
63+
}
64+
6165
- (void)setActive:(BOOL)visible animated:(BOOL)animated {
6266

6367
if(!visible) {
@@ -264,6 +268,7 @@ - (void)initSearchHistoryView {
264268
make.width.mas_equalTo(kScreen_Width);
265269
make.height.mas_equalTo(@350);
266270
}];
271+
_searchHistoryView.contentSize = CGSizeMake(kScreen_Width, 0);
267272
}
268273

269274
[[_searchHistoryView subviews] makeObjectsPerformSelector:@selector(removeFromSuperview)];
@@ -423,11 +428,6 @@ - (void)analyseLinkStr:(NSString *)linkStr{
423428
}
424429

425430

426-
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
427-
NSLog(@"scrollViewWillBeginDragging");
428-
429-
[self.searchBar resignFirstResponder];
430-
}
431431

432432
#pragma mark -
433433
#pragma mark UISearchBarDelegate Support

Coding_iOS/Util/OC_Category/UIView+Common.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ - (void)addBadgePoint:(NSInteger)pointRadius withPointPosition:(CGPoint)point {
8787
UIView *badgeView = [[UIView alloc]init];
8888
badgeView.tag = kTagBadgePointView;
8989
badgeView.layer.cornerRadius = pointRadius;
90-
badgeView.backgroundColor = [UIColor redColor];
90+
badgeView.backgroundColor = [UIColor colorWithHexString:@"0xf75388"];
9191
badgeView.frame = CGRectMake(0, 0, 2 * pointRadius, 2 * pointRadius);
9292
badgeView.center = point;
9393
[self addSubview:badgeView];

Coding_iOS/Views/Cell/TweetSendTextCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ - (UIView *)keyboardToolBar{
129129

130130

131131
if ([[FunctionTipsManager shareManager] needToTip:kFunctionTipStr_TweetTopic]) {
132-
[topicButton addBadgePoint:3 withPointPosition:CGPointMake(27, 7)];
132+
[topicButton addBadgePoint:4 withPointPosition:CGPointMake(27, 7)];
133133
}
134134
}
135135

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// HotTopicBannerView.h
3+
// Coding_iOS
4+
//
5+
// Created by Lambda on 15/8/7.
6+
// Copyright (c) 2015年 Coding. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface HotTopicBannerView : UIView
12+
@property (strong, nonatomic) NSArray *curBannerList;
13+
//@property (nonatomic , copy) void (^tapActionBlock)(CodingBanner *tapedBanner);
14+
- (void)reloadData;
15+
@end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
//
2+
// HotTopicBannerView.m
3+
// Coding_iOS
4+
//
5+
// Created by Lambda on 15/8/7.
6+
// Copyright (c) 2015年 Coding. All rights reserved.
7+
//
8+
9+
#import "HotTopicBannerView.h"
10+
11+
@implementation HotTopicBannerView
12+
13+
/*
14+
// Only override drawRect: if you perform custom drawing.
15+
// An empty implementation adversely affects performance during animation.
16+
- (void)drawRect:(CGRect)rect {
17+
// Drawing code
18+
}
19+
*/
20+
21+
@end

0 commit comments

Comments
 (0)