开发者

SubView Not adjusting to my given size

开发者 https://www.devze.com 2023-02-19 04:22 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消