I am trying to use a special character in UILabel. But he cuts the labels. I set a red background to show where the edge of the label is. Any reason why this could happen? I have maskToBounds and clipToBounds for NO;
CGSize lblSize = [FontHelper sizeForText:text withFont:[self getBodyFont] withWidth:kColumnWidth andNumberOfLines:1000]; UILabel*lbl = [[UILabel alloc] initWithFrame:CGRectMake(x, y + body.frame.size.height - columnHeight - kBottomMargin, kColumnWidth, lblSize.height)]; lbl.clipsToBounds = NO; lbl.layer.masksToBounds = NO; lbl.text = text; lbl.backgroundColor = [UIColor redColor]; lbl.font = [self getBodyFont]; lbl.textColor = [UIColor blackColor]; lbl.numberOfLines = 0; lbl.textAlignment = UITextAlignmentLeft; lbl.lineBreakMode = UILineBreakModeWordWrap;
source share