Results 1 to 2 of 2
Discuss Weird problem when adding UINavigationController.view into UIViewController.view at the iPhone Developer Exchange - Hackint0sh.org; Hi Guys, I'm working on my 1st iPhone App and stuck on a weird problem. ...
  1. #1
    Newbie Array

    Join Date
    Jul 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Unhappy Weird problem when adding UINavigationController.view into UIViewController.view

    Hi Guys,

    I'm working on my 1st iPhone App and stuck on a weird problem.

    The app is a simple Utility app (like Weather or Stock) based on SDK's Utility Application Template. It has MainView, FlipsideView and an Info button to toggle each other. I also got the toggleView() function for free from template.

    The view hierarchy from template is like this:
    Window
    |
    RootView
    |
    InfoButton, MainView, FlipsideView

    All 3 views (RootView, MainView and FlipsideView) are simple UIView. Now I want to replace FlipsideView with a NavigationView (because I need provide drill down settings pages, which obviously should be put into a navigationController). But when I did that, I got the UI look like this:

    Status Bar (20px)
    Blank Space (20px)
    Navigation Bar
    TopView of NavigationController

    I assume, normally NavigationController.view should be directly put into UIWindow so the real status bar will cover that blank space. But in my case, it belongs to a normal UIView (RootView) which already been pushed down by the status bar.

    Anyone has the similar issue? Do you know if there any workaround?

    TIA!!!



  2. #2
    Newbie Array

    Join Date
    Sep 2007
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    In the nib file that has the placeholder for your view to be loaded into, select that placeholder. In the inspector there's a checkbox for something like "Resize to fit screen". Turn it off.

    Amorya

 

 

Similar Threads

  1. [iphone 2G-3.0][SMS Problem] Can not view SMSs, only preview is visible ?
    By psychoboi1122 in forum iOS 3.x (iPhone OS 3.x)
    Replies: 2
    Last Post: 07-22-2009, 05:49 PM
  2. Is it possible to view? Please help
    By ethan0902_2008 in forum iPhone 3GS
    Replies: 4
    Last Post: 07-10-2009, 09:11 PM
  3. How do i get the view?.......
    By jjgraz in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 04-08-2009, 12:03 AM
  4. View to View NSUserDefault - Source code included
    By jjgraz in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 03-07-2009, 10:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 12:17 AM.
twitter, follow us!