We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8e71d commit 30d966cCopy full SHA for 30d966c
1 file changed
Example/SDWebImageLinkPlugin/SDViewController.m
@@ -21,8 +21,8 @@ @implementation LinkTableViewCell
21
22
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
23
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.
+ LPLinkMetadata *metadata = [LPLinkMetadata new]; // We must pass empty metadata here, or will cause Cell-reusing issues on iOS 13.1.
+ _linkView = [[LPLinkView alloc] initWithMetadata:metadata];
26
[self.contentView addSubview:_linkView];
27
}
28
return self;
0 commit comments