Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIButton title appears with dots when set programatically

When I set the title of the UIButton in the xib, it works fine, but when I set the same text programatically to the title of the button it is trimmed.

BUY THIS FILM FOR 20.00$ -> BUY THIS FI...FOR 20.00$

like image 477
Luda Avatar asked Apr 23 '26 23:04

Luda


1 Answers

Try this way:

[_button setTitle:@"BUY THIS FILM FOR 20.00$" forState:UIControlStateNormal];
like image 185
Thilina Chamath Hewagama Avatar answered Apr 26 '26 13:04

Thilina Chamath Hewagama