What is the best way to show multiple lines text in the UILabel?
Correct Answer: myLabel.numberOfLines = 0; CGRect currentFrame = myLabel.frame; CGSize max = CGSizeMake(myLabel.frame.size.width, 500); CGSize expected = [myString sizeWithFont:myLabel.font constrainedToSize:max lineBreakMode:myLabel.lineBreakMode]; currentFrame.size.height = expected.height; myLabel.frame = currentFrame;
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More IOS Technical Test MCQ Questions