views:

52

answers:

1

Hey,

In an application I'm developing, everything starts from a navigation controller, which then loads up several pages.

My question is, how can I load up a new view ABOVE this? The closest I've got is to do this in the App Delegate:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{   
    [self checkAndCreateDatabase];
    [self readDataFromDatabase];

    [window addSubview:[navigationController view]];

    // Add this
    [window addSubview:[newViewController view]];

    [window makeKeyAndVisible];

    return YES;
}

However this will load the view half way across the screen with no way of having it start at (0,0). Do anyone have a better suggestion?

Thanks

A: 

You can show regular views on top of everything by showing it as a modal view. Here is a sample project. http://dl.dropbox.com/u/3656129/ModalViewExample.zip

enbr
Hey, thanks for that. I didn't mention this in the question but you can't give a modal view and reduced alpha and see whats underneath it seems!
ing0
Is that what you want? If it is, I'll look into it. Otherwise please accept my answer.
enbr