Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnWong committed Jun 26, 2024
1 parent 1689a75 commit eda2d67
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions BusRider.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,9 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
JW_BUILD = 22;
JW_VERSION = 3.5;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
JW_BUILD = 31;
JW_VERSION = 3.6;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -1382,9 +1382,9 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
JW_BUILD = 22;
JW_VERSION = 3.5;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
JW_BUILD = 31;
JW_VERSION = 3.6;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand Down
2 changes: 1 addition & 1 deletion BusRider/Controller/JWBusLineViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ - (void)updateViews
self.titleLabel.text = [NSString stringWithFormat:@"%@(%@-%@)", lineItem.lineNumber, lineItem.from, lineItem.to];
self.firstTimeLabel.text = lineItem.firstTime;
self.lastTimeLabel.text = lineItem.lastTime;
self.lineAssist.text = lineItem.hasInfo ? @"" : @"未开通实时信息";
self.lineAssist.text = lineItem.assistDesc;

NSInteger count = self.busLineItem ? self.busLineItem.stopItems.count : 0;
self.contentHeightConstraint.constant = count * kJWButtonHeight;
Expand Down
1 change: 1 addition & 0 deletions BusRider/Controller/JWMainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ - (void)viewDidLoad
// self.searchController.searchResultsUpdater = self;
self.searchController.searchBar.delegate = self;
self.navigationItem.searchController = self.searchController;
[self.searchController setActive:true];

// [self.searchController.searchResultsTableView registerNib:[UINib nibWithNibName:@"JWSearchTableViewCell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:JWCellIdSearch];
self.tableView.backgroundColor = HEXCOLOR(0xefeff6);
Expand Down
2 changes: 1 addition & 1 deletion Common/Item/BusLine/JWLineItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@
/**
* 是否有实时信息
*/
@property (nonatomic, assign) BOOL hasInfo;
@property (nonatomic, strong) NSString *assistDesc;
@end
2 changes: 1 addition & 1 deletion Common/Item/BusLine/JWLineItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ - (void)setFromDictionary:(NSDictionary *)dict
self.to = lineDict[@"endSn"];
self.firstTime = lineDict[@"firstTime"];
self.lastTime = lineDict[@"lastTime"];
self.hasInfo = [lineDict[@"hasBusInfo"] boolValue];
self.assistDesc = lineDict[@"assistDesc"];

NSArray *otherLines = dict[@"otherlines"];
if (otherLines.count == 1) {
Expand Down

0 comments on commit eda2d67

Please sign in to comment.