SubView Not adjusting to my given size
I am adding a subview (which开发者_JAVA百科 is a class's view) to my view.i have fixed it's size to 320, 200 but still it resizes to the full screen when i run my program.
How to do this.?
[<view> setClipsToBounds:YES]
Will restrict the subview's bounds to its superview
Please verify autoresizesSubviews
and autoresizingMask
properties of the view and subViews. I have faced similar issues and it was due to these properties which made my subViews to resize.
精彩评论