6
UIButton z dwoma wierszami tekstu w tytule (numberOfLines = 2)
Próbuję utworzyć UIButtonetykietę, która ma dwa wiersze tekstu w tytule. Oto kod, którego używam: UIButton *titleButton = [[UIButton alloc] initWithFrame:CGRectMake(15, 10, frame.size.width-100, 100)]; titleButton.titleLabel.font = [UIFont boldSystemFontOfSize:24.0]; [titleButton setTitle:@"This text is very long and should get truncated at the end of the second line" forState:UIControlStateNormal]; titleButton.titleLabel.lineBreakMode = UILineBreakModeTailTruncation; titleButton.titleLabel.numberOfLines = …