Community Questions & Answers

Help sorting JSON

Ok, I am banging my head against the wall trying to figure this out. I'm sure it's simple and I am just too close to see it. What did I miss? This is the JSON that is received: ~~~ { "content": [ { "item_id":...

Array sort is not working

I am trying to sort an array ,but it looks that it is not working at all. ~~~ var arr = [ { distance: 1 }, { distance: 3 }, { distance: 7 }, { distance: 3 }, { distance: 5 }, { distance: 7 }, { distance: 3 }, { distance:...

Playing sound one by one not working

Hi I want to run a list of sounds one by one using createSound.I have found a code for that and playing with it but no matter index of sound changes it plays the same sound(first one) again and again.Any help would be appreciated thanks ~~~ var mp3_array...

Copy / Paste Context Menu

Hello, i'm trying to figure out how to change the context menu language for copy / paste in iOS. Where can i change this? It's always english no matter which device language is set. Thanks!

Text not displaying in Two lines in List View

Hi All, In My project i am using ListView to display list of items, I have some bigger text which need to be displayed in multiple lines. In Andriod it is working fine but in iOS even i increase the height i am not getting in multiple lines, How to solve...

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

ListItem itemId Query

I know that in the docs it states that [itemId is a string](http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListItem-property-itemId) but I have been setting ItemId to be a JSON object. This works fine on iOS so I can directly reference...

Titanium Remote Control App

Hi, not a question, but really showing the current results of a project I am doing for someone (that includes all the electronic as well) where I am usingTitanium to create the associated mobile app. The app basically turns the phone into a remote speed...

Facebook apprequests on iOS

Hi there, I'm using the SDK 3.2.2.GA on iOS 7 and all my Facebook interactions work just fine. However, I just cannot get the apprequests dialog to work. Here's some code: ~~~ buttonInvite.addEventListener('click', function(){ var data = { ...

Facebook module problem with iOS 7

Hi, I'm developing a mobile app for iOS 7 and I use my own iPhone to proceed all tests. I'm trying the add a Facebook connexion possibility and everything work fine until I accept the application. I don't know if it's my code OR Facebook but it's not...

Issue with starting app in Titanium Studio

Hi, I've got a bit strange issue with Titanium. When I try to start the app on IOS Simulator it shows me alert with the following message: ~~~ An internal error occurred during: "Launching Titanium iOS Simulator - iOS Simulator -...

Show index in Android tableview

I’m currently developing an `iOS` and `Android` cross platform application. In that I want to show a `TableView` with some data and also I need to show the index. For that I used the following code: ~~~ var win = Ti.UI.createWindow({ ...

Issue in Taking the Height of different devices

Hi All, In my project i want handle the Views Top, Height Dynamically for that i want to get Device Height, I am using below code for getting height Titanium.Platform.displayCaps.platformHeight for iOS i getting nice like for 5 inch i am getting 568...

Conversion of Date issue in iOS

Hi All, We are getting some date conversion issue in iOS but in Andrios it is working fine. We are getting some date format like this "1992-08-20T00:00:00" We wrote a method to convert it to 1992-08-20, function dateFormatYyyyMmDd(a_date)...

Replace profile image

Hi there I have a profile image. It shows up fine. I can have the user open the camera or gallery and select a image. But how can I replace the profile image with the new profile image. I am stuck at the bottom of my sample code. Thanks for all...

iOS Block Call

I am trying to develop a native (iOS) Titanium module. I am having trouble making a call to a named block function when it takes a pointer as an argument. Below is the simplest code snippet I could make that reproduces the error. In it I create 3 block...

Are there any way to hook openURL in tiapp.m

~~~ - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { [launchOptions removeObjectForKey:UIApplicationLaunchOptionsURLKey]; [launchOptions setObject:[url...

Showing 1-50 of 5,685 1 2 3 4 5 6114