1010#import " CSTopicModel.h"
1111#import " Coding_NetAPIManager.h"
1212
13-
1413#define kCellIdentifier_TopicNameCell @" kCellIdentifier_TopicNameCell"
1514
16-
1715@interface CSTopicCreateVC () <UITableViewDataSource,UITableViewDelegate, UISearchBarDelegate,UISearchDisplayDelegate>
1816@property (nonatomic ,strong )UITableView *listView;
1917@property (nonatomic ,strong )UISearchBar *searchBar;
2018@property (nonatomic ,strong )UISearchDisplayController *mySearchDisplayController;
21- // @property (nonatomic,strong)NSMutableArray *createdTopiclist;
2219@property (nonatomic ,copy )NSString *createdTopicName;
2320@property (nonatomic ,strong )NSArray *historyTopiclist;
2421@property (nonatomic ,strong )NSArray *hotTopiclist;
@@ -36,7 +33,7 @@ + (void)showATSomeoneWithBlock:(void(^)(NSString *topicName))block{
3633- (void )viewDidLoad {
3734 [super viewDidLoad ];
3835
39- self.edgesForExtendedLayout = UIRectEdgeNone;
36+ self.edgesForExtendedLayout = UIRectEdgeNone;
4037 self.automaticallyAdjustsScrollViewInsets = NO ;
4138
4239 _listView = ({
@@ -70,21 +67,10 @@ - (void)viewDidLoad {
7067 [searchBar insertBGColor: [UIColor colorWithHexString: @" 0x28303b" ]];
7168
7269 searchBar.searchBarStyle = UISearchBarStyleDefault;
73- // searchBar.searchBarStyle = UISearchBarStyleMinimal;
74-
7570 searchBar.translucent = YES ;
76-
7771 searchBar.backgroundColor = [UIColor clearColor ];
78-
79- for (UIView *subview in self.searchBar .subviews )
80- {
81- NSLog (@" -%@ " ,[subview description ]);
82- for (UIView *ssb in subview.subviews ) {
83- NSLog (@" --%@ " ,[ssb description ]);
84- }
85- }
86-
8772 searchBar;
73+
8874 });
8975
9076 _mySearchDisplayController = ({
@@ -100,7 +86,6 @@ - (void)viewDidLoad {
10086 searchVC;
10187 });
10288
103- // _createdTopiclist = [@[] mutableCopy];
10489 _createdTopicName = nil ;
10590 _historyTopiclist = [CSTopicModel latestUseTopiclist ];
10691 _hotTopiclist = @[];
@@ -213,7 +198,6 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
213198
214199 NSString *selectedTopicName = nil ;
215200 if (tableView == _mySearchDisplayController.searchResultsTableView ) {
216- // selectedTopicName = _createdTopiclist[indexPath.row];
217201 selectedTopicName = _createdTopicName;
218202 [cell showCreateBtn: (_createdTopicName && _createdTopicName.length > 0 )];
219203 }else {
@@ -237,7 +221,6 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
237221
238222 NSString *selectedTopicName = nil ;
239223 if (tableView == _mySearchDisplayController.searchResultsTableView ) {
240- // selectedTopicName = _createdTopiclist[indexPath.row];
241224 selectedTopicName = _createdTopicName;
242225 }else {
243226 if (indexPath.section == 0 ) {
0 commit comments