Community Questions & Answers

Load different first window based on cookie?

I have code in the alloy.js file which checks for the presence and value of a cookie. Based upon this cookie I want to branch to either a login screen or into the restored session window. What should the code look like in (index.js?)(alloy.js?) to manage...

How Can I close parent window of any Window ?

Hello, I want to know that How Can I close parent window ? I have Login window and Registration button inside the window. Now I am showing Registration window as **modal** when button is pressed. Now when Registration get successful then I am closing...

Android 4.4 window slow to be shown

SDK 3.4.0.GA I've noticed that on Android API19 (4.4.2, 4.4.4) windows are very slow to be shown. Here how I open it ~~~ Alloy.createController('mywin', {}).getView().open(); ~~~ I put a postLayout listener on the window ~~~ <Alloy> <Window...

How to get currentWindow in Alloy

In Alloy, Ti.UI.currentWindow doesn't work (returns undefined). Is there an alternative to this? From the context of a TableViewRow controller I need to access the current window in order to add a view (spinner). Any suggestions?

Window Hierarchy

According to the iOS human interface guidelines, an app only has one window and then different views that change within that window. In the tutorials I have done for titanium it always mentioned to create a different window and then add other views to that...

Add window to a view - 3.2.2

Hi, I am trying to add a view to an existing window. But when i to do this, the app crashes with 'NSRangeException. - [__NSArrayM objectAtIndex:]: index 1 beyond bounds [0 .. 0] This worked on 2.x SDK. but now i am using 3.2.2. What is the correct...

Title does not show on simple window

I have started a new app and I am unable to make a titlebar appear on my window. Do I need to use tab groups to get a title bar? I do not need tabs for this app. I am testing in iPhone simulator and see the same results across 3.2-4.2 ~~~ var indexWin =...

Window opens multiple times iOS

Hello, i got a little problem here. I built a tableView with some rows. A new window should open by taping on a row. That works good. But if you're taping fast enough on a row, the Window opens multiple times. Is there a simple way to make sure that the...

iOS7: Change color of backButton and window title

Hi, I was wondering whether there is already the possibility to change the color of the backButtonTitle and window title on iOS7? Haven't found a ticket on Jira so far. I know this is not available for iOS6 and it is somehow possible to change at least...

How to refresh a window after removing a view?

Hi, I have a function that removes a view from a window, however the rest of the window doesn't resize to "fill in" the empty space the way it would if the view wasn't added in the first place. Is there a way to force the window to...

Showing 1-50 of 1,556 1 2 3 4 5 632