views:

35

answers:

1

Hello, guys.

I want to put an centered image and a bottom centered text in a UIButton.

How I can do that?

Thanks in advance.

A: 

Ok, figure out how. Using the methods:

    [button1 setTitleEdgeInsets:UIEdgeInsetsMake(30.0, 0.0, 0.0, 0.0)];
    [button1 setImageEdgeInsets:UIEdgeInsetsMake(-10.0, 29.0, 0.0, 0.0)];

:)

R31n4ld0_
Please, if the answer was useful, vote! Thanks.
R31n4ld0_