Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
fix RKOBaseCell bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Mar 7, 2018
1 parent 4744a65 commit f1dec99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions RKOTools/RKOBaseCell/RKOBaseCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ @implementation RKOBaseCell
// 快速获取 cell
+ (instancetype)cell:(UITableView *)tableView {
NSString *ID = NSStringFromClass(self);
RKOCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
RKOBaseCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];

if (!cell) {
[tableView registerClass:self forCellReuseIdentifier:ID];
Expand All @@ -26,7 +26,7 @@ + (instancetype)cell:(UITableView *)tableView {
// 从xib中获取cell
+ (instancetype)xibCell:(UITableView *)tableView {
NSString *ID = NSStringFromClass(self);
RKOCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
RKOBaseCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];

if (!cell) {
[tableView registerNib:[UINib nibWithNibName:ID bundle:nil] forCellReuseIdentifier:ID];
Expand Down

0 comments on commit f1dec99

Please sign in to comment.