views:

3213

answers:

4

Probably something simple, but 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. This is strange since I can change the size for the other two views (associated with the other two tab bar items).

I am not sure if this has anything to do with but I recently updated the sdk to 3.

Thanks!

+15  A: 

I think that you cannot edit the size while simulating any user interface elements such as the status bar in Interface Builder. You could try turning the simulated elements off if any are enabled. Not exactly sure why this is, so would appreciate feedback from anyone who knows why exactly this is - there must be a good reason.

teabot
Thanks that's right. After I upgraded xcode and IB the status bar was on by default. The others have it at off.
A: 

I'm having the same problem. Can someone please clarify how to disable the "simulating user interface elements" as I can't see any way to do that?

I'm using IB version 3.1.2.

+9  A: 

The part that you are looking for is on the first Inspector panel (Command-1). Right at the top there is a section that is labeled Simulated User Interface Elements. By default the Status Bar is on. You need to make sure all three are set to None.

Thomas Mon
Thanks, these answers just saved me a ton of time! Anyone know why IB does this?
Gregor
+1 This has been driving me nuts! Thanks!
Bogatyr
Thanks mate. I've been looking for that one.
natanavra
Note to all, this is now: "Unspecified" instead of none. (I have version 3.2.3)
IcyBlueRose
+1  A: 

Just go to the inspector, go to the first panel (or press command-1) and then change the fields marked Status Bar, Top Bar, and Bottom Bar to None under the section called "Simulated User Interface Elements". You may need to click the little triangle to make them visible.