I have a UIView that is sized to fit the entire screen minus 5 pixels on each side. I have set it to autoresize however this makes the view lose its 5 pixels on one side, and completely fills the sides when flipped horizontally. I need the 5 pixel buffer to exist in all orientations. Is there any way I can tweak the way auto resize works to make this happen?
My code:
[newsfeed setAutoresizingMask:UIViewAutoresizingFlexibleWidth];
Also, I have dragged one of the many views in from storyboard, and that one does not respond to the code above. How can I make it auto resize?