How to set a views frame width? (Why can't I set it directly?)
ios, iphone, objective-c, positioning, uiview
Solution
you can't set width directly, do this
CGRect frm = view.frame;
frm.size.width = x;
view.frame = frm;
Problem
I want to reset a UIView's frame size so I wrote: ``` view.frame.size.width = x; ``` but it doesn't work, can anyone tell me why?