Reputation: 535
I am adding a subview (which 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.?
Upvotes: 0
Views: 170
Reputation: 283
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.
Upvotes: 0
Reputation: 677
[<view> setClipsToBounds:YES]
Will restrict the subview's bounds to its superview
Upvotes: 2