sai
sai

Reputation: 499

how to change default view size

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

Upvotes: 3

Views: 4608

Answers (3)

Malloc
Malloc

Reputation: 16276

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.

enter image description here enter image description here

Upvotes: 1

Rakesh Bhatt
Rakesh Bhatt

Reputation: 4606

Just Change the Property of the view.

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

Thts it..!!

Upvotes: 0

kviksilver
kviksilver

Reputation: 3854

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:

enter image description here

Upvotes: 15

Related Questions