I tried to make a view(not rotated) wider in a controller. I tried two approaches to do that:
According to the docs on the bounds and frame of a
Changing the bounds size grows or shrinks the view relative to its center point.
Setting this property changes the point specified by the center property and the size in the bounds rectangle accordingly.
Therefore increasing the bounds width by 80 will add 40pts to the left and right sides of the view, whereas increasing the frame width by 80 will add 80pts to the right hand side of the view.
While you are correct in saying that when the
transform is identity, then
bounds.size should be the same as
frame.size, this doesn't mean that the behaviour when you set these values is the same (which it isn't). I would also take note of what Duncan says about the namings of your variables.