Skip to content

If link is in paragraph, which has setLineBreakMode == NSLineBreakByTruncatingTail than link tap is not detected #41

@peterpaulis

Description

@peterpaulis
    // p
    {
        NSMutableParagraphStyle * ps = [[NSMutableParagraphStyle alloc] init];
        [ps setLineHeightMultiple:1.1];
        [ps setLineBreakMode:NSLineBreakByTruncatingTail];
        
        NSDictionary * a = @{
            NSFontAttributeName: [UIFont systemFontOfSize:self.newsTitleLabel.font.pointSize],
            NSForegroundColorAttributeName: textColor,
            NSParagraphStyleAttributeName: ps
        };
        [options setAttributes:a forTagName:@"p"];
    }

removing the
[ps setLineBreakMode:NSLineBreakByTruncatingTail];

makes the tap detection work again

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions