IPhone Application With 2 Windows

I am trying to create an iPhone application with 2 windows. However - I do know how to exactly. Does anyone know where to find a tutorial or example?
My other window created is always null.

To make the following example, start a new project with the Window-based App Template and name it TwoWin:
// TwoWinAppDelegate.h
@interface TwoWinAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
UIWindow *window2;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UIWindow *window2;
- (IBAction)switchWindow;
@end
// TwoWinAppDelegate.m
#import "TwoWinAppDelegate.h"
@implementation TwoWinAppDelegate
@synthesize window;
@synthesize window2;
- (IBAction)switchWindow {
NSLog(@"%s:
window=%@
window2=%@", _func_, window, window2);
if (window.keyWindow) {
[window2 makeKeyAndVisible];
window.hidden = YES;
window2.hidden = NO;
else {
[window makeKeyAndVisible];
window.hidden = NO;
window2.hidden = YES;
NSLog(@" window.keyWindow=%d window2.keyWindow=%d",
window.keyWindow, window2.keyWindow);
- (void)applicationDidFinishLaunching:(UIApplication *)application {
[window makeKeyAndVisible];
window2.hidden = YES;
- (void)dealloc {
[window2 release];
[window release];
[super dealloc];
@end
MainWindow.xib looks like this (when the "View Mode" is in the Center position so a two column table is displayed with the view hierarchy as a tree of small icons to the left):
File's Owner -- UIApplication
First Responder -- UIResponder
Two Win App Delegate -- TwoWinAppDelegate
Window -- UIWindow
......View -- UIView
............Rounded Rect Button (Switch1) -- UIButton
Window2 -- UIWindow
......View2 -- UIView
............Rounded Rect Button (Switch2) -- UIButton
The XIB connections:
File's Owner:
......'delegate' outlet to App Delegate
App Delegate:
......'window' outlet to Window
......'window2' outlet to Window2
Rounded Rect Button (Switch1):
......'Touch Up Inside' to App Delegate: switchWindow
Rounded Rect Button (Switch2):
......'Touch Up Inside' to App Delegate: switchWindow
The View1 and View2 frames are manually set to full-screen less status bar since no view controllers are used in this example. E.g., for iPhone, set these frames to (0, 20, 320, 460) in the Size Inspector. It's also helpful to set View1 and View2 to different background colors in the Attributes Inspector.
- Ray

Similar Messages

  • Unable to update iPhone Application with ApplicationLoader

    I'm having a problem updating my iPhone application with the applicationLoader. It says it was completed uploading but in the iTunesConnect interface it still says "Waiting for Upload". I've tried uploading about 20 different times now, and attempted to contact Apple support on multiple occasions about this.
    Anyone have any tips on how to work around this, or get it to work? I've tried resetting the preferences of ApplicationLoader and it hasn't helped.
    Thanks

    2 weeks - no reply....

  • I am unable to sync my all iphone application with itunes..

    I am unable to sync my all iphone application with itunes..

    are they missing, or are you out of space?

  • Syncing iphone calendar with windows calendar

    I am trying to sync my iphone calendar with my windows calendar, but in itunes under info and "sync calendars with", it only gives me the option to sync with outlook. Any help would be appreciated.

    Allan Sampson wrote:
    Microsoft copied Google and now supports accessing a Hotmail or Windows Live Mail account as an Exchange account with the iPhone's Mail app. This provides Push access for received messages and for syncing contacts and calendar events over the air with the account on your iPhone.
    For syncing calendar events direct with an application on your computer via the iTunes sync process, you need Outlook 2003, 2007, or 2010.
    I understand your second statement about the needing Outlook - but I'm trying to reconcile it with your first paragraph - there is support for calendar events over the air between Windows Live and iPhone? So it can be done, just not physically through syncing via iTunes?

  • Burning Videos from iPhone/iTunes with Windows Movie Maker?????

    How can I burn videos that I take on my 3GS iPhone and than sync to my PC/iTunes with Windows Movie Maker? When I attempt to load or drag the video file into movie maker it give me an error message due to the file type is not supported. Any suggestions or points in the right direction would be helpful. Thanks in advance.

    This is because iTunes Store purchases and in a protected file format, so you won't be able to directly convert them from the protected file into something that Windows movie maker could read.
    As the previous poster said, you can try burning the files to a CD, then importing the CD again. I think that ought to work.
    -Kylene

  • Possible to synchronyse Iphone calendar with Window Mail calendar ?

    I am using Windows Mail (default mail software delivered with Window Vista)on my computer and would like to synchronyse Window Mail calendar with my newly acquired Iphone 4. Unfortunately, calendar synchronisation settings proposed by Itunes don't seem to recognize Windows Mail (only Outlook proposed). Is it possible to perform such synchronization with Window Mail and if yes what is the process ?
    In addition, would Outlook Express be proposed in the synchronization settings if loaded on the computer ?
    Many thank in advance for your answers.

    No.
    Syncing calendar events is supported with Outlook 2003, 2007, or 2010 along with syncing contacts and notes.
    The iPhone does not sync with Outlook Express or with the Outlook email client. The iPhone supports syncing contacts with the address book app used by Outlook Express with XP, or with the address book app used by Windows Mail with Vista and Windows 7.

  • Over-the-air sync of iphone 4s with windows xp pc

    how do i sync my iphone calendar with a calendar on my windows xp pc over the air, that is without connecting by wire.

    Your husband's Android is almost certainly probably synching with a server somewhere, not with his desktop computer directly. If you have your calendar on some sort of server - iCloud, Google Calendar, Microsoft Exchange, or the like - then you also can sync your calendar from your iPhone.
    Regards.

  • TS4062 I have the latest iTunes update and can't sync my iPhone 5 with Windows 8.1.  iTunes not showing my device is connected.

    I recently updated from Windows 8 to 8.1.  Now I can't sync my iPhone 5.  I have the latest version of iTunes and my phone is updated as well.  It worked fine with Windows 8.  Now iTunes doesn't show my phone when it's connected. My computer does recognize that my phone is connected.  Is there a fix for Windows 8.1?

    these are common problems with windows 8.1 and you can point the fault at MS not iTunes
    refer to diesel vdub's post
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538

  • Sync iphone calendar with windows 8 calendar

    Hi, I'm using windows 8 on my new PC and would like to sync my iPhone calendar with it.
    Is it possible?
    How do I do it?
    Thanks

    This windows 8 app can sync with iCloud/Google calendar.
    http://apps.microsoft.com/windows/app/winpim-calendar/08436f52-dded-44a5-9508-c2 b22235ac1d

  • IPhone Application with Addons or Extra Packages

    I'm looking to start development on an iPhone application, but I have a question on how extending the app would work.
    The base application needs to rely on packages for content, which themselves will be individually purchased through the iTunes store. These packages add additional content to the base application, and should not replace the app or existing content previously purchased.
    Is a model like this possible?

    Proceed carefully. As things are now the downloads are separate but can be linked together using device ID and external server. You'll have to make sure your model, package, icons are intuitive and clear on how it works. You'll be using Apple's system as a token delivery system and get the content to the mail app otherwise.
    This is one way I would do this:
    Lets say my main app is a "Speak them All!" language program that comes with four popular languages and the other apps are for different languages. I would make them as:
    Main app, "Speak them All!", runs:
    1 - Register device ID with external server.
    2 - Get list of languages (and content) for device ID from external server. If updates to language files or new language files, get the updates.
    "Flemish" expansion app Runs:
    1 - See if device ID is registered with external server.
    2A - If Yes in step 1, ask user if they would like to add Flemish to "Speak them All!" and after they give the expected Yes answer, register language "Flemish" with the server and tell user "Done! Flemish has now been added to "Speak them All!". You can now delete this expansion."
    2B - If No in step 1, let them know that the expansion should be run after "Speak them All!" has been loaded and ran.
    Hope it helps.

  • IPhone application with maps & map routes

    I am developing an iPhone application whose one of the feature is drawing routes on map. My application has support for iOS4+ which means it has to support maps on iOS6 as well.
    I am using sample code from  https://github.com/kadirpekel/MapWithRoutes to draw routes.
    But this has used google's unofficial API "https://maps.google.com/maps". On surfing i found that to make these url work on iOS6 just use "https://maps.apple.com/map. This works fine on ios6 as well as previous iOS. I tried sample & everything works fine on ios 6 as well as ios 4 & ios 5.
    Only I want to know, has anyone used this url before. Is this the correct solution to my problem. Will my application be accepted successfully at submission time?

    Only Apple knows if a solution will be accepted or not. If you are using any method other than Apple's official MapKit, then you are playing with fire.

  • Cannot sync my iphone 4S with Windows 7 service pack 1

    Cannot sync my iphone 4s - IOS 8.1.1 with Windows 7 service pack 1
    itunes just stops working before sync takes place

    Sorry-that was rubbish. the Iphine shows up as a device and also charges but when I open Itunes the option to sync is greyed out and when I use the diagnostic tool it says no device found. I have upgraded to the latest Itunes but still no joy.
    Thanks

  • Building iPhone applications on Windows Desktop ?

    We run our product builds on a Windows PC. We support many handheld platforms and build all of them on the Windows PC. So ideally I want to be able to build the native iPhone applications on the same build machine.
    Note that i am not talking about developing iPhone applications on a Windows PC, just running an automated build on a Windows PC.
    Is it possible and if so how?
    Thanks in advance,
    -TRS

    You're not going to be able to create an iphone executable on a PC. I doubt that they will ever provide one. Someone might black-box a compiler, but then you take your chances.
    On the other hand, you should be able to do the automation on the PC as long as the compilation actually takes place on a mac. If you set up some network system where the PC tells the mac that it needs to compile (you may have to manually create the make files, I'm not sure if xcode can be scripted and run from php or something).
    I'm not sure that that actually helps you any... the code still needs to be on the mac, so you might as well just have the mac automate itself, I guess.

  • Compatiblity of iPod and iPhone 3gs with Windows 7 64 bit operating system?

    Will the ipod classic anf the iPhone 3gs have software that will work with Windows 7 64 bit operating system?

    Hi Aaron,
    Make sure the Automatic Duplexing option is enabled:
    Enter Control Panel > Devices and Printers.
    Right click the printer icon, then click Printer Properties.
    Click the Device Settings tab.
    Set the Automatic Two-Sided Duplex Accessory as installed and click OK to save the change.
    Now Automatic Duplexing should become available.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Unable to sync iphone 4 with windows 8.1 any suggestions

    Unable to sync Iphone4 with windows 8.1 any suggetions

    Were you using the latest version of iTunes - 10.1.2.x ?
    For Windows machines there is a specific order of deinstallation that must be followed. If you didn't do it the way Apple specifies you may not have actually reinstalled the failing item.
    Here is the correct method: http://support.apple.com/kb/HT1923
    If neither of those items are your problem... I'll have to let someone smarter than myself have a go at it ;-/

Maybe you are looking for

  • MS6191 USB Not working under Windows XP Home.

    My usb ports on my ms6191 Mother Board stop working after about 10 minutes under Windows XP home edition. They work fine under 98SE and ME, any sugggestions any1?  

  • Performance of report & uni

    Hi all How to improve Performance in business object In universe designing  and Report development

  • Lightroom 4 from US, is there a license issue?

    I recently received a box unit of Lightroom 4 from US, is there a license issue if I install it in Singapore as I recide in Singapore. Are there any restrictions?

  • Halftone patterns/paths

    does anybody know if there exist any plug in or something to make halftone paths or patterns in different shapes than just the existing ones dots, circle and line. i want to have some other interesting shapes to make graphics like at banknotes and st

  • Email Enabled Calendar Issues

    I have set up several email enabled calendars in SharePoint 2010. The users create meetings in Outlook and invite the SharePoint calendar using the email address set up for the calendar. We are having some odd issues with recurring meetings. The meet