Kumar sonu
Kumar sonu

Reputation: 535

SubView Not adjusting to my given size

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

Answers (2)

D25
D25

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

Shreesh
Shreesh

Reputation: 677

[<view> setClipsToBounds:YES]

Will restrict the subview's bounds to its superview

Upvotes: 2

Related Questions