开发者

Making sure that UIView autoresizes as specified in NIB settings

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜