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.

87 lines
3.2 KiB

2 years ago
//
// 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:120 cellRow:self.dataArr.count isAdaptive:NO isLine:NO 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:@[@"icon_histroy_g",GJText(@"卫星定位"),GJText(@"支持美国GPS、中国北斗两种卫星定位,室外空旷地,最佳定位精度10米左右,但室内定位效果不佳。")] forKeys:@[@"img",@"title",@"content"]];
[_dataArr addObject:dict1];
NSMutableDictionary *dict2 = [[NSMutableDictionary alloc] initWithObjects:@[@"icon_home_wifi",GJText(@"Wi-Fi定位"),GJText(@"设备通过Wi-Fi模块,收集周边的Wi-Fi热点信息,来计算出自身的位置信息,定位的精准度最佳在50米以内。")] forKeys:@[@"img",@"title",@"content"]];
[_dataArr addObject:dict2];
NSMutableDictionary *dict3 = [[NSMutableDictionary alloc] initWithObjects:@[@"icon_home_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