uiwindow

Issue with UIViewController in iPad Universal App

I recently upgraded my iPhone app to a universal binary. I have 2 view controllers and nibs, one for the iPhone and one iPad. I scaled up the iPad UI and created the exact same connections in IB. However, I get this error: -[UIViewController _loadViewFromNibNamed:bundle:] loaded the "HomeScreen_iPad" nib but the view outlet was not se...

use two different uitab bar in application

Hi, I want to use two different uitabbar control in the application. first UITABbar control i add in the starting windows. and in this after the navigation i want to show the other tab bar with 5 tabs. can any one suggest how i do this ? Or we need to add a different window for add this and need to show this windows on the click or other...

Why not allocate the UIWindow object in the UIViewController subclass?

Suppose the application will only use a single-purpose view controller. Is there anything inherently bad with allocating the required UIWindow object as a member of the view controller subclass? The programming guide does not provide any examples built this way, although they also don't seem to emphasize whether that's truly allowed or...

Full screen UIImage view

I have an application with a navigation bar and a tab bar. A user can navigate to a view which displays images in a scroll view. I'd like to have the same behavior as the iPhone photo app: Nav bar at the top, tool bar at the bottom, which will hide or show based upon a tap. I'm moving my view to the window object in order to achieve f...

SplitView Controller Menu Overlay

Hey there guys, I'm trying to create a menu overlay system on top of a split view application for the iPad. The menu overlay systems is suppose to support a few buttons, one of which will make the overlay disappear and show the SplitViewController. My application delegate is as follows: UIView *view = [[UIView alloc] init]; [view add...

How to properly switch UIViews

I want to have multiple views in my application that I switch between. What is the proper way to switch between UIViews that also supports UISplitViewController? Is there a support way to switch or are Apple's controller classes designed to be root and root only? I've tried having one root view and root controller and swap subviews in ...

iPad SplitView Application not taking up entire window

Hey guys, I am working on a split-view based application for the iPad. I created a menu overlay system that has a button that leads into the split-view application. See comment for image When you click the enter button, however, it results in this: http://commandoswat.webs.com/Screen%20shot%202010-09-16%20at%201.37.11%20PM.png Here i...

No of UIWindow instances in an iPhone App

Can some one confirm me that only one UIWindow instance is possible in any iPhone Application at any time? UPDATE: I found the following information in this link . According to this there can be many windows. In addition, the UIApplication object maintains a list of all the windows (UIWindow objects) currently open in the applicati...

how to get my UIWindow using UIApplication?

Hello I have only one window and I tried UIWindow* mWindow = [[UIApplication sharedApplication] keyWindow]; but this returned nil. I also tried: UIWindow* mWindow = (UIWindow*)[[UIApplication sharedApplication].windows objectAtIndex:0]; But this raised an exception and the app closed, when I tried to print out [[UIApplication sh...

How do I show a view similar to UIActionSheet, on top of everything that's on the screen

I have a view with a UITextField which is the first responder. I'm trying to add a semi-transparent view with an activity indicator that would cover everything. Right now the code looks something like this: CATransition *animation = [CATransition animation]; [animation setType:kCATransitionFade]; [self.window.layer addAnimation:animati...

Getting reference to the top-most view/window in iOS application.

I'm creating a reusable framework for displaying notifications in an iOS application. I'd like the notification views to be added over the top of everything else in the application, sort of like a UIAlertView. When I init the manager that listens for NSNotification events and adds views in response, I need to get a reference to the top-m...

Passing touch events to UIViewController's view

I'm trying to have my iPad app mirror the app's screen to a secondary screen via a VGA cable. Due to performance issues, I only want to have my view's displayed on the secondary screen, but still capture touch events via the iPad's screen. My current method is with two UIWindows: one for the VGA-connected screen that shows all the view...

Height and width on iPhone (/iPad)

This is just a test application, There is only a AppDelegate class to create all I did was create a Window based app, set the supported orientations to only the landscape in the info.plist, and then add the following code: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ...

UIWindow gets distorted weirdly when outputted to an external screen

After I connect my iPad to an external screen, my window gets distorted all weirdly. I'm guessing this is because the screen's resolution is different than the iPad's and my app is not setup to autoresize it's views very well. Is there anyway to have the rendered output on the external screen be a a scaled visual image of the original i...

The 'rootViewController' outlet of UIWindow is not available on releases prior to iOS 4.0

I am getting the following error on pre-iOS 4.0 builds: The 'rootViewController' outlet of UIWindow is not available on releases prior to iOS 4.0. Remove the connection and instead programmatically add the view controller's view to the window after the application finishes launching. How and where do I do this programmatically? ...

May I add toolbar manually in UIWindows?

I added UIWindow and its toolbar like: self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; NSArray * arr = [NSArray arrayWithObjects:@"test1", @"test2", nil]; [[self.window rootViewController] setToolbarItems:arr animated:NO]; No toolbar showing up. Is it doable? Thanks. ...