您好,登錄后才能下訂單哦!
UILabel *linkLabel = [[UILabel alloc]init];
linkLabel.frame = CGRectMake(10, introduceLabel.frame.origin.y +introduceLabel.frame.size.height +10, [UIScreen mainScreen].bounds.size.width - 20, 20);
NSMutableAttributedString *content = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"%@",data[@"skipLinkText"]]];
NSRange contentRange = {0,[content length]};
[content addAttribute:NSUnderlineStyleAttributeName value:[NSNumber numberWithInteger:NSUnderlineStyleSingle] range:contentRange];
linkLabel.attributedText = content;
linkLabel.textColor = [UIColor blueColor];
linkLabel.font = [UIFont systemFontOfSize:10];
[linkLabel setLineBreakMode:NSLineBreakByWordWrapping];
linkLabel.numberOfLines = 2;
CGSize maximumLabelSize = CGSizeMake([UIScreen mainScreen].bounds.size.width - 20, 9999);
CGSize expectSize = [linkLabel sizeThatFits:maximumLabelSize];
linkLabel.frame = CGRectMake(10, introduceLabel.frame.origin.y +introduceLabel.frame.size.height +10, expectSize.width, expectSize.height);
[self.infoScrollView addSubview:linkLabel];
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。