Community Questions & Answers

window doesn't add view

Hi everyone, i have this strange problem which maybe is very simple: in my application i have 2 windows, a button andone view. At the beginning the view is added to the first window. I'd like that pressing the button the second window adds the view and...

Generic Tab - Tab Group Issue

- Titanium Studio: 3.4.0.201409261227 - Device: Android emulator - Nexus 10 - OS: Windows 7 I'm new to Titanium and Alloy. I'm trying to create a very generic Tabbing system utilizing the Alloy Tag <TabGroup> and my emulator bombs out anytime I hit...

remove view

Hey guys , I am new to titanium.I am facing issue in closing view after window switch. ~~ function createAPIExampleWindow(){ var win = Ti.UI.createWindow({ backgroundColor:'#222' }); var data = [ {title:...

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...

Reverse window.open() animation on close

This might be a dumb question, so forgive me in advance :) When using an animation to open a window, is there a way to reverse that animation when it closes? Example, let's say you open a window as such: ~~~ win.open({ transition:...

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...

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