Community Questions & Answers

navBar on iPhone

hi, i have a window with a picture in the navBar. i have a tabGroup too with three tabs. the problem is that the title 'actualité' for the first tab is displayed on the picture of the navbar. i want to remove it..what should i do ? thank you. ~~~ var...

Label positions

Hello, I've begun to put my hands on Appcelerator, and the first feeling about it is very cool... However, making a page with a nice layout with multiples labels is kind of hard for me. Maybe, I did not get the point about those attributes: __right__,...

Regarding Titanium.Contacts

What I would like to do is press a button called "select contact" and it let them pick from their contacts, but only ones that have a value for SMS. Is this possible with the Titanium.Contacts part of the API, and if so, does anyone have a...

Android no setImage on Ti.UI.ImageView ?

I have code that upon a use action, the image changes using the setImage accessor for the ImageView. This works fine on the iPhone but on Android I get an error Cannot find function setImage in object [Ti.UI.ImageView]. I could probably work around this...

Android - Load image from cache

I have a tableView..the row consists of labels and imageViews which receives data from server through url. It takes a long time to load all the 25 to 30 rows. And also when i come back to that page , it calls the url again. I have an idea of storing to...

ExitOnClose Question

Hi, in trying to debug a different issue I found something confusing (at least to me). Even when setting exitOnClose my application still shows in the running list? It does seem to close in that running it again doesn't resume the app but restarts it. ...

createImageView crash

Hi All, I'm an experienced programmer but new to Titanium. I must be doing something very silly. I can't get an image to load up. The following code just causes the iPhone emulator to exit with no error messages etc: ~~~ var win1 =...

Map Cleanup Issue

After upgrading to 1.6 here is an issue I see. My app uses a "main window" and lightweight-windows for a custom tab approach. If I exit the application from the 'tab' that has a MapView on it and then restart he application the MapView fails...

Using app.jss in existing projects

I have some projects developped with Titanium 1.6. Is it possible to apply styles with specific selectors? Because I have many window objects that begin with "win", etc ... I tried this: ~~~ win*{ color:'green'; } ~~~ But it didn't...

image property in Button

Hi ! What is this image property in Button ? Doc says "the image to display on the button to the left of the title". It seems to be different from backgroundImage and it would be great. But when I set it to an image path, my button disappear.

Window never cleared

Hi ! I have a mapView and clicking on the rightbutton of an annotation opens a new window. In this window I add some labels. The problem is that if I come back to the map using the back key, and open a window of an other annotation, the previous labels...

XML

Ti.Xml.parseString problem undefined its not supported why ?

First App: Kids and Home

So after 7 months (8 if you count the latest update) Our app has finally been released worldwide, in 2 languages. It's completely made with titanium and html5. our painting module was created using the ti.paint. I would also like to thank Adriano...

Stop animation

Hello I am trying to stop an animation. I looked into kitchensink app how they do it, but it doesn't seem to work for me. I use the following code: ~~~ var a = Titanium.UI.createAnimation(); a.top = 400; a.left = 0; a.duration = 5000; flag.animate(a,...

Positioning image

Hello I'm trying to position an image on another image. I have a floor map and i want to put a flag on a certain point. I have found a way, but I think it's a little stupid. Here's the code I'm using: ~~~ var flag_init = Ti.UI.createImageView({ ...

XML

Hi, i have a problem with parseString i get the following error : TypeError : cannot call method "parseString" of undefined. I just have a XML file, look at this : var setupXml = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory +...

Can you build an ipad and iphone app at the same time

Hi, I'm a bit confused why there's an ipad option separate to mobile, does this mean you can only create an iphone app and ipad app separately? Opften newer ipad apps in the store are able to work on both and are able to simply tweak layout for each. Is...

Local xml parsing

Hello Sir, In my Home Screen I have start button when i start button is pressed i handled these actions to parse the local xml values the following codings are attached: var f =...

Create views to mimic the tabGroup

Hey forum, I was wondering if anyone knows how to create views to mimic a tabgroup at the bottom. I want to keep the look but change the background colour and after some searching it seems that I can only do that by creating views and customizing...

Global static variables

On startup my application loads some constants from a remote server and keeps them in memory for use by other classes. In Java, I would have static variables in a certain class and access these static variables from any point within the app. How can I...

style property on a button

Hey guys I am trying to use the right nav button and settings its style. ~~~ var playerBtn = Ti.UI.createButton({ style:Titanium.UI.iPhone.SystemButton.PLAY }); win.setRightNavButton(playerBtn); ~~~ I can see the button, but the play icon isn't showing...

Showing 35,201-35,250 of 47,547 1700 701 702 703 704 705 706 707 708 709 710951