12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // RQCommonItemViewModel.m
- // RQCommon
- //
- // Created by 张嵘 on 2018/11/27.
- // Copyright © 2018 张嵘. All rights reserved.
- //
- #import "RQCommonItemViewModel.h"
- @implementation RQCommonItemViewModel
- + (instancetype)itemViewModelWithTitle:(NSString *)title icon:(NSString *)icon{
- RQCommonItemViewModel *item = [[self alloc] init];
- item.title = title;
- item.icon = icon;
- return item;
- }
- + (instancetype)itemViewModelWithTitle:(NSString *)title{
- return [self itemViewModelWithTitle:title icon:nil];
- }
- - (instancetype)init
- {
- self = [super init];
- if (self) {
- _selectionStyle = UITableViewCellSelectionStyleGray;
- _rowHeight = RQ_FIT_HORIZONTAL(60.0f);
- _delegate = self;
- }
- return self;
- }
- - (NSString *)itemClassName {
- return @"RQCommonCell";
- }
- @end
|