Resize view in view controller?

Discussion in 'iOS Programming' started by isharan, Jun 23, 2009.

  1. isharan macrumors member

    Joined:
    Jun 3, 2009
    #1
    Hi,

    In 3.0, how do I resize the size of a view? In the size inspector, the text boxes are grayed out and set to 460 * 320.

    Thanks!
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    What kind of view is this? Is it inside an existing controller, such as a UINavigationController? If so then it's probably disabled because the view's controller will auto-expand the view to fit in the controller's main view. Basically, if you want a view to be of a different size in this situation, try adding a subview and use that instead.
     
  3. isharan thread starter macrumors member

    Joined:
    Jun 3, 2009
    #3
    No, just a plain old view from a new xib file. Will play around with it though. Thanks for the help!
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    Weird, but this fixes it: set the Status Bar to None in the View Attributes panel.
     

Share This Page