I've got a UILabel and I want to make the line spacing less than 0 (so the text moves closer together rather than further away). What am I doing wrong?
UIFont* customFont = [UIFont fontWithName:@"BebasNeue" size:70]; NSString * text = @"Their \nIdeas"; NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:text]; NSMutableParagraphStyle *paragrahStyle = [[NSMutableParagraphStyle alloc] init]; paragrahStyle.lineSpacing = -30; [attributedString addAttribute:NSParagraphStyleAttributeName value:paragrahStyle range:NSMakeRange(0, [text length])]; UILabel *lbl1 = [[UILabel alloc] init]; lbl1.frame = CGRectMake(120, 0, viewWidth, 300); lbl1.backgroundColor = [UIColor clearColor]; lbl1.textColor = grayColor; lbl1.numberOfLines = 2; lbl1.attributedText = attributedString; lbl1.userInteractionEnabled = NO; lbl1.font = customFont; [view addSubview:lbl1]; [lbl1 setTransform:CGAffineTransformMakeRotation(0.35)];