views:

48

answers:

1

What is the best way to go about changing the dimensions of a UIButton at runtime? Width? Height?

+2  A: 

Set the frame.

CGPoint origin = button.frame.origin;
button.frame = CGRectMake( origin.x, origin.y, newWidth, newHeight );
Jacob Relkin