You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

86 lines
3.3 KiB

//
// MarkExplainViewController.m
// LekangGuard
//
// Created by ecell on 2022/12/12.
//
#import "MarkExplainViewController.h"
#import "MarkExplainTableViewCell.h"
@interface MarkExplainViewController ()
@property (nonatomic ,strong) CommonTableView *markTable;
@property (strong, nonatomic) NSMutableArray *dataArr;
@end
@implementation MarkExplainViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
self.zx_navTitle = GJText(@"定位说明");
[self.view addSubview:self.markTable];
[self.markTable mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.equalTo(self.view);
make.top.equalTo(self.view).offset(iPhoneX_NavHeight);
make.bottom.equalTo(self.view.mas_bottom);
}];
}
- (CommonTableView *)markTable
{
if (!_markTable)
{
kWeakSelf(self)
_markTable = [[CommonTableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain cellHeight:100 cellRow:self.dataArr.count isAdaptive:YES isLine:YES commonCell:MarkExplainTableViewCell.class createCell:^(ZZTableViewCell * _Nonnull cells, NSIndexPath * _Nonnull indexPath) {
MarkExplainTableViewCell *cell = (MarkExplainTableViewCell *)cells;
NSMutableDictionary *data = self.dataArr[indexPath.row];
cell.remarkImg.image = [UIImage imageNamed:data[@"img"]];
cell.remarkType.text = data[@"title"];
cell.remarkContent.text = data[@"content"];
} selectedCell:^(UITableView * _Nonnull tableView, NSIndexPath * _Nonnull indexPath) {
} DidscrollView:^(UIScrollView * _Nonnull scrollView) {
}];
}
return _markTable;
}
- (NSMutableArray *)dataArr
{
if (!_dataArr)
{
_dataArr = [NSMutableArray new];
NSMutableDictionary *dict1 = [[NSMutableDictionary alloc] initWithObjects:@[@"home_icon_gps",GJText(@"卫星定位"),GJText(@"支持北斗卫星高精度定位、GPS卫星定位。室外空旷地,北斗最佳定位精度2.5米,接入地面辅助系统可做到亚米级精度, GPS最佳定位精度10米。")] forKeys:@[@"img",@"title",@"content"]];
[_dataArr addObject:dict1];
NSMutableDictionary *dict2 = [[NSMutableDictionary alloc] initWithObjects:@[@"icon_wifi_positioning",GJText(@"Wi-Fi定位"),GJText(@"设备通过Wi-Fi模块,收集周边的Wi-Fi热点信息,来计算出自身的位置信息,定位的精准度最佳在50米以内。")] forKeys:@[@"img",@"title",@"content"]];
[_dataArr addObject:dict2];
NSMutableDictionary *dict3 = [[NSMutableDictionary alloc] initWithObjects:@[@"icon_base_station",GJText(@"模糊定位"),GJText(@"设备通过电信移动运营商的网络(如GSM网),获取自身的位置信息,定位的精准度一般在500米以内。")] forKeys:@[@"img",@"title",@"content"]];
[_dataArr addObject:dict3];
}
return _dataArr;
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end