How Do You Create a Single Window iOS App?

You must Login before you can answer or comment on any questions.

I have a single window app that I made that has worked on my phone and in the simulator. I have submitted 5 different versions of the code to apple and they have all been rejected saying the app never got past the loading screen. But they all worked for me.

I have tried hiding the navbar, I have tried the app.js opening a new main.js window, I have tried just creating a window in app.js and opening it. All of my solutions have worked on my phone and the simulator. I have no idea what is going on here and I can't just randomly submit the app to apple again. Its been 2 weeks between each review and like I said ive submitted it 5 times now.

I am in serious need of a working example of a single window app that has been approved by apple. How do I properly create the window and how do I add buttons/fields to it?

Here is part of my current App.js made with SDK 1.8.2 for iPhone

var win1 = Titanium.UI.createWindow({
    backgroundImage:'images/bg.png',
    navBarHidden: true,
    fullscreen:true,
    tabBarHidden:true
});
win1.orientationModes = [Ti.UI.LANDSCAPE_RIGHT];
 
win1.open();
 
var clearname = Titanium.UI.createButton({
    title : 'Clear Name',
    width : 70,
    height: 30,
    top : 30,
    left : 10
});
 
clearname.addEventListener('click', function() {
    namefield.value = '';
});
 
 
win1.add(clearall);
Below this code is more fields in this window and about 3,000 lines of code in several calculation functions.

— asked 11 months ago by Grant Wolz
4 Comments
  • Missing from your question are a number of important pieces of information. I suggest you take a look at the Using Questions and Answers article, specifically the Q&A Question Checklist. The missing information is critical to reproducing problems in a test environment and often indicates other factors that cause the undesirable outcome you are experiencing.

    — commented 11 months ago by Stephen Feather

  • The only two things missing that I can supply are Studio version and host OS.

    Titanium Studio, build: 2.0.2.201205311912 and OSX

    There are no logs or error messages because the app works perfectly without error on my phone running iOS 5.1.1 and in simulator as mentioned. Here is the studio output of me loading it and closing it.

    [INFO] Launched application in Simulator (13.55 seconds)
    [INFO] Found 4.3.2 patch installed
    [INFO] Application started
    [INFO] My App/1.0 (1.8.2.59b3a90)
    [INFO] Application has exited from Simulator
    All I know is that everything works for me but nothing works for Apple.

    — commented 11 months ago by Grant Wolz

  • request testing logs from apple.

    — commented 11 months ago by Stephen Feather

  • Show 1 more comment

1 Answer

Accepted Answer

To start with, you should be using the latest released SDK which is 2.1.0.GA which resolves a false start bug.

Your Answer

This question has been locked and cannot accept new answers.