Luda Luda - 5 months ago 29
iOS Question

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$

Answer

try this way:

[_button setTitle:@"BUY THIS FILM FOR 20.00$" forState:UIControlStateNormal];

Comments