From inspecting latest facebook and expedia iphone app, I can see the developers have used a single squared image which gets scaled up in run time into rectangular shape.
Can anyone share some code on how to do this programmatically in conjunction with the square image?



You are probably looking for this . Here’s another one: Stretchable Images and Buttons