12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // RDSSelectDeviceSubVC.m
- // Temperature
- //
- // Created by 姓二名哈字富贵儿 on 2023/8/17.
- //
- #import "RDSSelectDeviceSubVC.h"
- @interface RDSSelectDeviceSubVC () <UITableViewDelegate, UITableViewDataSource>
- @property (nonatomic, strong) UITableView *tableView;
- @end
- @implementation RDSSelectDeviceSubVC
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self configSubviews];
- }
- - (void)configSubviews {
- self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped];
- self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
- self.tableView.rowHeight = 110;
- self.tableView.delegate = self;
- self.tableView.dataSource = self;
- [self.view addSubview:self.tableView];
- [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
- make.left.right.bottom.equalTo(self.view);
- make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop);
- }];
- }
- #pragma mark - UITableViewDataSource
- - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
- return self.dataSource.count;
- }
- - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
- return 1;
- }
- - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
- return [[UITableViewCell alloc] init];
- }
- @end
|