开发者

how to change default view size

开发者 https://www.devze.com 2023-03-22 08:50 出处:网络
I amcreating a simle application on iphone.I want to change iphone app to ipad application.how to make it?.

I am creating a simle application on iphone.I want to change iphone app to ipad application.how to make it?.

Then how to change view size means Through interface builder..

I can't 开发者_开发知识库figure why I cannot resize a UIView in a xib in Interface Builder.

I created a new view XIB in xcode and in the size inspector, the width and height are disabled and grayed out to 320 by 460 I want to change 720 *720

I am creating all the view through Inteface builder ......Thanks


You need to disable all Simulated metrics for view in interface builder (status bar, top bar, bottom bar) then you will be able to change those values.. It should look like this:

how to change default view size


For those who develop with Xcode 4.5+, there is an extra parameter which should be set to None. By default, Xcode will assume using Retina 4 inch screen, set that metric to None to enable custom resizing for the view.

how to change default view size

how to change default view size


Just Change the Property of the view.

IN View Attribute just change the Status Bar value to unspecified.

Thts it..!!

0

精彩评论

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