开发者

Making sure that UIView autoresizes as specified in NIB settings

开发者 https://www.devze.com 2022-12-29 03:10 出处:网络
I have create a view based application and its loaded correctly what i designed in the xib files.My doubt is when i designed uiview it has the property of resize its frame size(autoresize).

I have create a view based application and its loaded correctly what i designed in the xib files.My doubt is when i designed uiview it has the property of resize its frame size(autoresize).

But when i load开发者_Python百科ed the application into iphone the uiview has not the property of resize its frame automatically.Is it possible to change a uiview automatically in iphone (when application loaded)? (or) We can change the frame size of the uiview for every touches moved event.

Can anyone help me ?

Thanks in advance.......


have you tried something like this:

CGRect f = self.view.bounds;
f.size.width = 200; // change value here;
f.size.height = 200; // and here

self.view.bounds = f;
0

精彩评论

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

关注公众号