title: Scale a UIView Horizontally
body: <p>I'm trying to scale a view Horizontally but i'm not getting the results i expected.</p>
  
  <pre><code>view.bounds = CGRectMake(view.bounds.origin.x, view.bounds.origin.y , view.bounds.size.width * scaleX, view.bounds.size.height );
  view.center = CGPointMake(view.bounds.origin.x, view.center.y);
  </code></pre>
  
  <p>As you can see at the code above, i want to scale the view just to the right side. This is why i changed the center of the view.</p>
  
  <p>The problem is that the view stills scaling to both sides!
  I did the same logic to scale another UIView vertically and got the result i expected.</p>