Skip to content

Commit 30d966c

Browse files
committed
Using empty metadata for hack
1 parent 2a8e71d commit 30d966c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Example/SDWebImageLinkPlugin/SDViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ @implementation LinkTableViewCell
2121

2222
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
2323
if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
24-
NSURL *url = nil;
25-
_linkView = [[LPLinkView alloc] initWithURL:url]; // We must pass nil here, or will cause Cell-reusing issues on iOS 13.1.
24+
LPLinkMetadata *metadata = [LPLinkMetadata new]; // We must pass empty metadata here, or will cause Cell-reusing issues on iOS 13.1.
25+
_linkView = [[LPLinkView alloc] initWithMetadata:metadata];
2626
[self.contentView addSubview:_linkView];
2727
}
2828
return self;

0 commit comments

Comments
 (0)