Skip to content

Commit 45fa686

Browse files
committed
fix nav~
1 parent e7e7f74 commit 45fa686

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Coding_iOS/Controllers/ProjectListViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ - (void)viewDidLoad {
2020
-(void)viewWillAppear:(BOOL)animated
2121
{
2222
[super viewWillAppear:animated];
23+
[self.mySearchBar removeFromSuperview];
2324
//重置titleview
2425
self.navigationItem.titleView=[[[[self.navigationController viewControllers] firstObject] navigationItem] titleView];
2526
}

Coding_iOS/Controllers/RootControllers/Project_RootViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#import "Projects.h"
1111
#import "XTSegmentControl.h"
1212
#import "iCarousel.h"
13+
#import "CategorySearchBar.h"
1314

1415
@interface Project_RootViewController : BaseViewController<iCarouselDataSource, iCarouselDelegate>
1516
@property (strong, nonatomic) NSArray *segmentItems;
@@ -18,4 +19,5 @@
1819
@property (assign, nonatomic) NSInteger oldSelectedIndex;
1920
@property (strong, nonatomic) iCarousel *myCarousel;
2021
@property (assign, nonatomic) BOOL useNewStyle;
22+
@property (strong, nonatomic) MainSearchBar *mySearchBar;
2123
@end

Coding_iOS/Controllers/RootControllers/Project_RootViewController.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
#import "SearchViewController.h"
3030
#import "pop.h"
3131
#import "FRDLivelyButton.h"
32-
#import "CategorySearchBar.h"
3332

3433
@interface Project_RootViewController ()<UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate>
3534
@property (strong, nonatomic) NSMutableDictionary *myProjectsDict;
@@ -42,7 +41,6 @@ @interface Project_RootViewController ()<UISearchBarDelegate, UITableViewDataSou
4241
@property (nonatomic,strong)UIButton *leftNavBtn;
4342
@property (nonatomic,strong)FRDLivelyButton *rightNavBtn;
4443
@property (nonatomic,strong)UIView *searchView;
45-
@property (strong, nonatomic) MainSearchBar *mySearchBar;
4644

4745
@end
4846

0 commit comments

Comments
 (0)